Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages |
#include <xoutbase.h>
Base class for xout.
An abstract base class, which defines the interface for using xout.
Definition at line 47 of file xoutbase.h.
Data Structures | |
class | Send |
Public Types | |
typedef charT | char_type |
typedef CStreamMapType::value_type | CStreamMapEntryType |
typedef CStreamMapType::iterator | CStreamMapIteratorType |
typedef std::map< std::string, ostream_type * > | CStreamMapType |
typedef traits::int_type | int_type |
typedef basic_ios< charT, traits > | ios_type |
typedef traits::off_type | off_type |
typedef basic_ostream< charT, traits > | ostream_type |
typedef traits::pos_type | pos_type |
typedef xoutbase | Self |
typedef traits | traits_type |
typedef XStreamMapType::value_type | XStreamMapEntryType |
typedef XStreamMapType::iterator | XStreamMapIteratorType |
typedef std::map< std::string, Self * > | XStreamMapType |
Public Member Functions | |
virtual int | AddOutput (const char *name, ostream_type *output) |
virtual int | AddOutput (const char *name, Self *output) |
virtual int | AddTargetCell (const char *) |
virtual int | AddTargetCell (const char *name, ostream_type *cell) |
virtual int | AddTargetCell (const char *name, Self *cell) |
virtual const CStreamMapType & | GetCOutputs (void) |
virtual const XStreamMapType & | GetXOutputs (void) |
template<class T > | |
Self & | operator<< (const T &_arg) |
Self & | operator<< (ios_base &(*pf)(ios_base &)) |
Self & | operator<< (ios_type &(*pf)(ios_type &)) |
Self & | operator<< (ostream_type &(*pf)(ostream_type &)) |
Self & | operator[] (const char *cellname) |
virtual int | RemoveOutput (const char *name) |
virtual int | RemoveTargetCell (const char *name) |
virtual void | SetOutputs (const CStreamMapType &outputmap) |
virtual void | SetOutputs (const XStreamMapType &outputmap) |
virtual void | SetTargetCells (const CStreamMapType &cellmap) |
virtual void | SetTargetCells (const XStreamMapType &cellmap) |
virtual void | WriteBufferedData (void) |
xoutbase ()=default | |
virtual | ~xoutbase ()=default |
Protected Member Functions | |
virtual void | Callback (void) |
virtual Self & | SelectXCell (const char *name) |
template<class T > | |
Self & | SendToTargets (const T &_arg) |
Protected Attributes | |
bool | m_Call { false } |
CStreamMapType | m_COutputs |
CStreamMapType | m_CTargetCells |
XStreamMapType | m_XOutputs |
XStreamMapType | m_XTargetCells |
typedef charT xoutlibrary::xoutbase< charT, traits >::char_type |
Definition at line 55 of file xoutbase.h.
typedef CStreamMapType::value_type xoutlibrary::xoutbase< charT, traits >::CStreamMapEntryType |
Definition at line 66 of file xoutbase.h.
typedef CStreamMapType::iterator xoutlibrary::xoutbase< charT, traits >::CStreamMapIteratorType |
Definition at line 64 of file xoutbase.h.
typedef std::map< std::string, ostream_type * > xoutlibrary::xoutbase< charT, traits >::CStreamMapType |
Definition at line 62 of file xoutbase.h.
typedef traits::int_type xoutlibrary::xoutbase< charT, traits >::int_type |
Definition at line 56 of file xoutbase.h.
typedef basic_ios< charT, traits > xoutlibrary::xoutbase< charT, traits >::ios_type |
Definition at line 60 of file xoutbase.h.
typedef traits::off_type xoutlibrary::xoutbase< charT, traits >::off_type |
Definition at line 58 of file xoutbase.h.
typedef basic_ostream< charT, traits > xoutlibrary::xoutbase< charT, traits >::ostream_type |
Definition at line 59 of file xoutbase.h.
typedef traits::pos_type xoutlibrary::xoutbase< charT, traits >::pos_type |
Definition at line 57 of file xoutbase.h.
typedef xoutbase xoutlibrary::xoutbase< charT, traits >::Self |
Typedef's.
Definition at line 52 of file xoutbase.h.
typedef traits xoutlibrary::xoutbase< charT, traits >::traits_type |
Definition at line 54 of file xoutbase.h.
typedef XStreamMapType::value_type xoutlibrary::xoutbase< charT, traits >::XStreamMapEntryType |
Definition at line 67 of file xoutbase.h.
typedef XStreamMapType::iterator xoutlibrary::xoutbase< charT, traits >::XStreamMapIteratorType |
Definition at line 65 of file xoutbase.h.
typedef std::map< std::string, Self * > xoutlibrary::xoutbase< charT, traits >::XStreamMapType |
Definition at line 63 of file xoutbase.h.
|
default |
Constructors
|
virtualdefault |
Destructor
|
virtual |
Add/Remove an output stream (like cout, or an fstream, or an xout-object).
|
virtual |
|
inlinevirtual |
Reimplemented in xoutlibrary::xoutrow< charT, traits >.
Definition at line 127 of file xoutbase.h.
|
virtual |
Methods to Add and Remove target cells. They return 0 when successful.
|
virtual |
|
inlineprotectedvirtual |
Called each time << is used, but only when m_Call == true;
Definition at line 169 of file xoutbase.h.
|
virtual |
Get the output maps.
Reimplemented in xoutlibrary::xoutsimple< charT, traits >.
|
virtual |
Reimplemented in xoutlibrary::xoutsimple< charT, traits >.
|
inline |
the << operator. A templated member function, and some overloads.
The overloads are required for manipulators, like std::endl. (these manipulators in fact are global template functions, and need to deduce their own template arguments) template < class T > Self & operator<<(T & _arg) { return this->SendToTargets(_arg); }
Definition at line 94 of file xoutbase.h.
|
inline |
Definition at line 112 of file xoutbase.h.
|
inline |
Definition at line 106 of file xoutbase.h.
|
inline |
Definition at line 100 of file xoutbase.h.
|
inline |
The operator [] simply calls this->SelectXCell(cellname). It returns an x-cell
|
virtual |
Reimplemented in xoutlibrary::xoutrow< charT, traits >, and xoutlibrary::xoutsimple< charT, traits >.
|
virtual |
Reimplemented in xoutlibrary::xoutrow< charT, traits >.
|
protectedvirtual |
Returns a target cell.
Reimplemented in xoutlibrary::xoutrow< charT, traits >.
|
inlineprotected |
Definition at line 172 of file xoutbase.h.
|
virtual |
Reimplemented in xoutlibrary::xoutrow< charT, traits >, and xoutlibrary::xoutsimple< charT, traits >.
|
virtual |
Reimplemented in xoutlibrary::xoutrow< charT, traits >, and xoutlibrary::xoutsimple< charT, traits >.
|
virtual |
|
virtual |
Reimplemented in xoutlibrary::xoutrow< charT, traits >.
|
virtual |
Reimplemented in xoutlibrary::xoutcell< charT, traits >, and xoutlibrary::xoutrow< charT, traits >.
|
protected |
Boolean that says whether the Callback-function must be called. False by default.
Definition at line 166 of file xoutbase.h.
|
protected |
Maps that contain the outputs.
Definition at line 156 of file xoutbase.h.
|
protected |
Maps that contain the target cells. The << operator passes its input to these maps.
Definition at line 161 of file xoutbase.h.
|
protected |
Definition at line 157 of file xoutbase.h.
|
protected |
Definition at line 162 of file xoutbase.h.
Generated on 1667476801 for elastix by 1.9.4 |