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>

Inheritance diagram for xoutlibrary::xoutrow< charT, traits >:
Inheritance graph
[legend]
Collaboration diagram for xoutlibrary::xoutrow< charT, traits >:
Collaboration 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 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 ()

Protected Member Functions

virtual SuperclassSelectXCell (const char *name)

Protected Attributes

XStreamMapType m_CellMap

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 40 of file xoutrow.h.


Member Typedef Documentation

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

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

Definition at line 49 of file xoutrow.h.

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

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

Definition at line 60 of file xoutrow.h.

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

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

Definition at line 58 of file xoutrow.h.

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

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

Definition at line 56 of file xoutrow.h.

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

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

Definition at line 50 of file xoutrow.h.

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

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

Definition at line 54 of file xoutrow.h.

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

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

Definition at line 52 of file xoutrow.h.

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

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

Definition at line 53 of file xoutrow.h.

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

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

Definition at line 51 of file xoutrow.h.

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

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

Definition at line 44 of file xoutrow.h.

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

Definition at line 45 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

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

Definition at line 48 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 64 of file xoutrow.h.

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

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

Definition at line 61 of file xoutrow.h.

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

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

Definition at line 59 of file xoutrow.h.

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

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

Definition at line 57 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) [protected, virtual]

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 113 of file xoutrow.h.



Generated on 11-05-2012 for elastix by doxygen 1.7.6.1 elastix logo