yat  0.20.3pre
Public Member Functions | Related Functions | List of all members
theplu::yat::utility::ColumnStream Class Reference

#include <yat/utility/ColumnStream.h>

Public Member Functions

 ColumnStream (std::ostream &os, size_t columns)
 Constructor.
 
 ~ColumnStream (void)
 Destructor.
 
void flush (void)
 
size_t & margin (size_t c)
 
void next_column (void)
 jump to next column
 
void print (std::stringstream &)
 print to active column
 
void set_column (size_t)
 select which column is active
 
size_t & width (size_t c)
 

Related Functions

(Note that these are not member functions.)

template<typename T >
ColumnStreamoperator<< (ColumnStream &s, const T &rhs)
 ColumnStream output operator. More...
 

Detailed Description

ostream for sending to multiple columns

Member Function Documentation

◆ flush()

void theplu::yat::utility::ColumnStream::flush ( void  )

flush to ostream, goes to newline and activates first column

◆ margin()

size_t& theplu::yat::utility::ColumnStream::margin ( size_t  c)
Returns
reference to margin of column c

◆ width()

size_t& theplu::yat::utility::ColumnStream::width ( size_t  c)
Returns
reference to width of column c

Friends And Related Function Documentation

◆ operator<<()

template<typename T >
ColumnStream & operator<< ( ColumnStream s,
const T &  rhs 
)
related

ColumnStream output operator.

Requirement: T should have operator operator<<(ostream&, const T&)


The documentation for this class was generated from the following file:

Generated on Sat Feb 18 2023 03:31:45 for yat by  doxygen 1.8.14