yat  0.14.5pre
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

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

flush to ostream, goes to newline and activates first column

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

Friends And Related Function Documentation

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 Tue Sep 26 2017 02:33:30 for yat by  doxygen 1.8.5