go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
xoutlibrary::xoutrow< charT, traits > Class Template Reference

#include <xoutrow.h>

Detailed Description

template<class charT, class traits = char_traits< charT >>
class xoutlibrary::xoutrow< charT, traits >

The xoutrow class can easily generate tables.

The xoutrow class is used in elastix for printing the registration information, such as metric value, gradient information, etc. You can fill in all this information, and only after calling WriteBufferedData() the entire row is printed to the desired outputs.

Definition at line 42 of file xoutrow.h.

Inheritance diagram for xoutlibrary::xoutrow< charT, traits >:
Inheritance graph
[legend]

Public Types

typedef Superclass::char_type char_type
 
typedef Superclass::CStreamMapEntryType CStreamMapEntryType
 
typedef Superclass::CStreamMapIteratorType CStreamMapIteratorType
 
typedef Superclass::CStreamMapType CStreamMapType
 
typedef Superclass::int_type int_type
 
typedef Superclass::ios_type ios_type
 
typedef Superclass::off_type off_type
 
typedef Superclass::ostream_type ostream_type
 
typedef Superclass::pos_type pos_type
 
typedef xoutrow Self
 
typedef xoutbase< charT, traits > Superclass
 
typedef Superclass::traits_type traits_type
 
typedef xoutcell< charT, traits > XOutCellType
 
typedef Superclass::XStreamMapEntryType XStreamMapEntryType
 
typedef Superclass::XStreamMapIteratorType XStreamMapIteratorType
 
typedef Superclass::XStreamMapType XStreamMapType
 
- Public Types inherited from xoutlibrary::xoutbase< charT, traits >
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, Superclass *output)
 
virtual int AddTargetCell (const char *name)
 
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 XStreamMapType &cellmap)
 
virtual void WriteBufferedData (void)
 
virtual void WriteHeaders (void)
 
 xoutrow ()
 
virtual ~xoutrow ()
 
- Public Member Functions inherited from xoutlibrary::xoutbase< charT, traits >
virtual int AddOutput (const char *name, Self *output)
 
virtual int AddTargetCell (const char *name, ostream_type *cell)
 
virtual int AddTargetCell (const char *name, Self *cell)
 
virtual const CStreamMapTypeGetCOutputs (void)
 
virtual const XStreamMapTypeGetXOutputs (void)
 
template<class T >
Selfoperator<< (const T &_arg)
 
Selfoperator<< (ostream_type &(*pf)(ostream_type &))
 
Selfoperator<< (ios_type &(*pf)(ios_type &))
 
Selfoperator<< (ios_base &(*pf)(ios_base &))
 
Selfoperator[] (const char *cellname)
 
virtual void SetTargetCells (const CStreamMapType &cellmap)
 
 xoutbase ()
 
virtual ~xoutbase ()
 

Protected Member Functions

virtual SuperclassSelectXCell (const char *name)
 
- Protected Member Functions inherited from xoutlibrary::xoutbase< charT, traits >
virtual void Callback (void)
 
template<class T >
SelfSendToTargets (const T &_arg)
 

Protected Attributes

XStreamMapType m_CellMap
 
- Protected Attributes inherited from xoutlibrary::xoutbase< charT, traits >
bool m_Call
 
CStreamMapType m_COutputs
 
CStreamMapType m_CTargetCells
 
XStreamMapType m_XOutputs
 
XStreamMapType m_XTargetCells
 

Member Typedef Documentation

template<class charT , class traits = char_traits< charT >>
typedef Superclass::char_type xoutlibrary::xoutrow< charT, traits >::char_type

Definition at line 51 of file xoutrow.h.

template<class charT , class traits = char_traits< charT >>
typedef Superclass::CStreamMapEntryType xoutlibrary::xoutrow< charT, traits >::CStreamMapEntryType

Definition at line 62 of file xoutrow.h.

template<class charT , class traits = char_traits< charT >>
typedef Superclass::CStreamMapIteratorType xoutlibrary::xoutrow< charT, traits >::CStreamMapIteratorType

Definition at line 60 of file xoutrow.h.

template<class charT , class traits = char_traits< charT >>
typedef Superclass::CStreamMapType xoutlibrary::xoutrow< charT, traits >::CStreamMapType

Definition at line 58 of file xoutrow.h.

template<class charT , class traits = char_traits< charT >>
typedef Superclass::int_type xoutlibrary::xoutrow< charT, traits >::int_type

Definition at line 52 of file xoutrow.h.

template<class charT , class traits = char_traits< charT >>
typedef Superclass::ios_type xoutlibrary::xoutrow< charT, traits >::ios_type

Definition at line 56 of file xoutrow.h.

template<class charT , class traits = char_traits< charT >>
typedef Superclass::off_type xoutlibrary::xoutrow< charT, traits >::off_type

Definition at line 54 of file xoutrow.h.

template<class charT , class traits = char_traits< charT >>
typedef Superclass::ostream_type xoutlibrary::xoutrow< charT, traits >::ostream_type

Definition at line 55 of file xoutrow.h.

template<class charT , class traits = char_traits< charT >>
typedef Superclass::pos_type xoutlibrary::xoutrow< charT, traits >::pos_type

Definition at line 53 of file xoutrow.h.

template<class charT , class traits = char_traits< charT >>
typedef xoutrow xoutlibrary::xoutrow< charT, traits >::Self

Definition at line 46 of file xoutrow.h.

template<class charT , class traits = char_traits< charT >>
typedef xoutbase< charT, traits > xoutlibrary::xoutrow< charT, traits >::Superclass

Definition at line 47 of file xoutrow.h.

template<class charT , class traits = char_traits< charT >>
typedef Superclass::traits_type xoutlibrary::xoutrow< charT, traits >::traits_type

Typedefs of Superclass

Definition at line 50 of file xoutrow.h.

template<class charT , class traits = char_traits< charT >>
typedef xoutcell< charT, traits > xoutlibrary::xoutrow< charT, traits >::XOutCellType

Extra typedefs

Definition at line 66 of file xoutrow.h.

template<class charT , class traits = char_traits< charT >>
typedef Superclass::XStreamMapEntryType xoutlibrary::xoutrow< charT, traits >::XStreamMapEntryType

Definition at line 63 of file xoutrow.h.

template<class charT , class traits = char_traits< charT >>
typedef Superclass::XStreamMapIteratorType xoutlibrary::xoutrow< charT, traits >::XStreamMapIteratorType

Definition at line 61 of file xoutrow.h.

template<class charT , class traits = char_traits< charT >>
typedef Superclass::XStreamMapType xoutlibrary::xoutrow< charT, traits >::XStreamMapType

Definition at line 59 of file xoutrow.h.

Constructor & Destructor Documentation

template<class charT , class traits = char_traits< charT >>
xoutlibrary::xoutrow< charT, traits >::xoutrow ( )

Constructor

template<class charT , class traits = char_traits< charT >>
virtual xoutlibrary::xoutrow< charT, traits >::~xoutrow ( )
virtual

Destructor

Member Function Documentation

template<class charT , class traits = char_traits< charT >>
virtual int xoutlibrary::xoutrow< charT, traits >::AddOutput ( const char *  name,
ostream_type output 
)
virtual

Add/Remove an output stream (like cout, or an fstream, or an xout-object). In addition to the behaviour of the Superclass's methods, these functions set the outputs of the TargetCells as well.

Reimplemented from xoutlibrary::xoutbase< charT, traits >.

template<class charT , class traits = char_traits< charT >>
virtual int xoutlibrary::xoutrow< charT, traits >::AddOutput ( const char *  name,
Superclass output 
)
virtual
template<class charT , class traits = char_traits< charT >>
virtual int xoutlibrary::xoutrow< charT, traits >::AddTargetCell ( const char *  name)
virtual

This method adds an xoutcell to the map of Targets.

Reimplemented from xoutlibrary::xoutbase< charT, traits >.

template<class charT , class traits = char_traits< charT >>
virtual int xoutlibrary::xoutrow< charT, traits >::RemoveOutput ( const char *  name)
virtual
template<class charT , class traits = char_traits< charT >>
virtual int xoutlibrary::xoutrow< charT, traits >::RemoveTargetCell ( const char *  name)
virtual

This method removes an xoutcell to the map of Targets.

Reimplemented from xoutlibrary::xoutbase< charT, traits >.

template<class charT , class traits = char_traits< charT >>
virtual Superclass& xoutlibrary::xoutrow< charT, traits >::SelectXCell ( const char *  name)
protectedvirtual

Returns a target cell. Extension: if input = "WriteHeaders" it calls this->WriteHeaders() and returns 'this'.

Reimplemented from xoutlibrary::xoutbase< charT, traits >.

template<class charT , class traits = char_traits< charT >>
virtual void xoutlibrary::xoutrow< charT, traits >::SetOutputs ( const CStreamMapType outputmap)
virtual
template<class charT , class traits = char_traits< charT >>
virtual void xoutlibrary::xoutrow< charT, traits >::SetOutputs ( const XStreamMapType outputmap)
virtual
template<class charT , class traits = char_traits< charT >>
virtual void xoutlibrary::xoutrow< charT, traits >::SetTargetCells ( const XStreamMapType cellmap)
virtual

Method to set all targets at once. The outputs of these targets are not set automatically, so make sure to do it yourself.

Reimplemented from xoutlibrary::xoutbase< charT, traits >.

template<class charT , class traits = char_traits< charT >>
virtual void xoutlibrary::xoutrow< charT, traits >::WriteBufferedData ( void  )
virtual

Write the buffered cell data in a row to the outputs, separated by tabs.

Reimplemented from xoutlibrary::xoutbase< charT, traits >.

template<class charT , class traits = char_traits< charT >>
virtual void xoutlibrary::xoutrow< charT, traits >::WriteHeaders ( void  )
virtual

Writes the names of the target cells to the outputs; This method can also be executed by selecting the "WriteHeaders" target: xout["WriteHeaders"]

Field Documentation

template<class charT , class traits = char_traits< charT >>
XStreamMapType xoutlibrary::xoutrow< charT, traits >::m_CellMap
protected

Definition at line 118 of file xoutrow.h.



Generated on 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo