![]() |
Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages |
#include <xoutrow.h>
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.
Public Types | |
using | Self = xoutrow |
using | Superclass = xoutbase |
![]() | |
using | CStreamMapEntryType = CStreamMapType::value_type |
using | CStreamMapType = std::map< std::string, std::ostream * > |
using | Self = xoutbase |
using | XStreamMapEntryType = XStreamMapType::value_type |
using | XStreamMapType = std::map< std::string, Self * > |
Public Member Functions | |
int | AddNewTargetCell (const char *name) |
int | AddOutput (const char *name, std::ostream *output) override |
int | AddOutput (const char *name, Superclass *output) override |
int | RemoveOutput (const char *name) override |
int | RemoveTargetCell (const char *name) override |
void | SetOutputs (const CStreamMapType &outputmap) override |
void | SetOutputs (const XStreamMapType &outputmap) override |
void | WriteBufferedData () override |
virtual void | WriteHeaders () |
xoutrow ()=default | |
~xoutrow () override=default | |
![]() | |
virtual int | AddOutput (const char *name, Self *output) |
virtual int | AddOutput (const char *name, std::ostream *output) |
virtual int | AddTargetCell (const char *name, Self *cell) |
virtual int | AddTargetCell (const char *name, std::ostream *cell) |
virtual const CStreamMapType & | GetCOutputs () |
virtual const XStreamMapType & | GetXOutputs () |
template<class T > | |
Self & | operator<< (const T &_arg) |
Self & | operator<< (std::ios &(*pf)(std::ios &)) |
Self & | operator<< (std::ios_base &(*pf)(std::ios_base &)) |
Self & | operator<< (std::ostream &(*pf)(std::ostream &)) |
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 | WriteBufferedData () |
virtual | ~xoutbase ()=0 |
Protected Member Functions | |
void | SetXTargetCells (const XStreamMapType &cellmap) override |
![]() | |
void | SetCTargetCells (const CStreamMapType &cellmap) |
virtual void | SetXTargetCells (const XStreamMapType &cellmap) |
xoutbase ()=default | |
Private Attributes | |
std::map< std::string, std::unique_ptr< xoutbase > > | m_CellMap |
Additional Inherited Members | |
![]() | |
CStreamMapType | m_COutputs |
CStreamMapType | m_CTargetCells |
XStreamMapType | m_XOutputs |
XStreamMapType | m_XTargetCells |
using xoutlibrary::xoutrow::Self = xoutrow |
|
default |
Constructor
|
overridedefault |
Destructor
int xoutlibrary::xoutrow::AddNewTargetCell | ( | const char * | name | ) |
This method adds a new xoutcell to the map of Targets.
|
overridevirtual |
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.
|
overridevirtual |
Reimplemented from xoutlibrary::xoutbase.
|
overridevirtual |
Reimplemented from xoutlibrary::xoutbase.
|
overridevirtual |
This method removes an xoutcell to the map of Targets.
Reimplemented from xoutlibrary::xoutbase.
|
overridevirtual |
Reimplemented from xoutlibrary::xoutbase.
|
overridevirtual |
Reimplemented from xoutlibrary::xoutbase.
|
overrideprotectedvirtual |
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.
|
overridevirtual |
Write the buffered cell data in a row to the outputs, separated by tabs.
Reimplemented from xoutlibrary::xoutbase.
|
virtual |
Writes the names of the target cells to the outputs.
Generated on 2023-01-13
for elastix by ![]() |
![]() |