ITK  4.1.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
itk::CSVArray2DDataObject< TData > Class Template Reference

#include <itkCSVArray2DDataObject.h>

+ Inheritance diagram for itk::CSVArray2DDataObject< TData >:
+ Collaboration diagram for itk::CSVArray2DDataObject< TData >:

List of all members.

Public Types

typedef SmartPointer< const SelfConstPointer
typedef itk::Array2D< TData > MatrixType
typedef std::vector< TData > NumericVectorType
typedef SmartPointer< SelfPointer
typedef CSVArray2DDataObject Self
typedef std::vector< std::string > StringVectorType
typedef DataObject SuperClass

Public Member Functions

void ColumnHeadersPushBack (const std::string &)
virtual ::itk::LightObject::Pointer CreateAnother (void) const
void EraseFirstColumnHeader ()
void FillMatrix (TData value)
NumericVectorType GetColumn (const std::string &) const
NumericVectorType GetColumn (const unsigned int &) const
TData GetColumnData (const std::string &, const unsigned int &) const
StringVectorType GetColumnHeaders () const
unsigned int GetColumnIndexByName (const std::string &) const
TData GetData (const std::string &, const std::string &) const
TData GetData (const unsigned int &, const unsigned int &) const
virtual MatrixType GetMatrix ()
virtual const char * GetNameOfClass () const
NumericVectorType GetRow (const std::string &) const
NumericVectorType GetRow (const unsigned int &) const
TData GetRowData (const std::string &, const unsigned int &) const
StringVectorType GetRowHeaders () const
unsigned int GetRowIndexByName (const std::string &) const
TData operator() (const std::string &, const std::string &) const
TData operator() (const unsigned int &, const unsigned int &) const
void RowHeadersPushBack (const std::string &)
void SetMatrixData (unsigned int, unsigned int, TData)
void SetMatrixSize (unsigned int, unsigned int)
virtual void SetHasColumnHeaders (bool _arg)
virtual void SetHasRowHeaders (bool _arg)
virtual void HasColumnHeadersOn ()
virtual void HasColumnHeadersOff ()
virtual void HasRowHeadersOn ()
virtual void HasRowHeadersOff ()
virtual bool GetHasColumnHeaders () const
virtual bool GetHasRowHeaders () const

Static Public Member Functions

static Pointer New ()

Protected Member Functions

 CSVArray2DDataObject ()
void PrintSelf (std::ostream &os, Indent indent) const
virtual ~CSVArray2DDataObject ()

Private Member Functions

 CSVArray2DDataObject (const Self &)
void operator= (const Self &)

Private Attributes

StringVectorType m_ColumnHeaders
bool m_HasColumnHeaders
bool m_HasRowHeaders
MatrixType m_Matrix
StringVectorType m_RowHeaders

Detailed Description

template<class TData>
class itk::CSVArray2DDataObject< TData >

Stores parsed data from csv files.

CSVArray2DDataObject contains methods for accessing data from the Array2D object. It is used in the CSVFileToArray2DReader class for storing parsed data. The CSVArray2DDataObject comprises of an Array2D object and two std string vectors for storing row and column headers. Individual rows, columns and data fields can be accessed either by the names of the headers or by indices. There are also some mutator methods that can be used to modify values in the Array2D object as well as PushBack functions for pushing column and row headers into their respective vectors.

Definition at line 46 of file itkCSVArray2DDataObject.h.


Member Typedef Documentation

template<class TData >
typedef SmartPointer<const Self> itk::CSVArray2DDataObject< TData >::ConstPointer

Reimplemented from itk::DataObject.

Definition at line 53 of file itkCSVArray2DDataObject.h.

template<class TData >
typedef itk::Array2D<TData> itk::CSVArray2DDataObject< TData >::MatrixType

Typedef for the Array2D object.

Definition at line 66 of file itkCSVArray2DDataObject.h.

template<class TData >
typedef std::vector<TData> itk::CSVArray2DDataObject< TData >::NumericVectorType

Definition at line 59 of file itkCSVArray2DDataObject.h.

template<class TData >
typedef SmartPointer<Self> itk::CSVArray2DDataObject< TData >::Pointer

Reimplemented from itk::DataObject.

Definition at line 52 of file itkCSVArray2DDataObject.h.

template<class TData >
typedef CSVArray2DDataObject itk::CSVArray2DDataObject< TData >::Self

Standard class typedefs.

Reimplemented from itk::DataObject.

Definition at line 50 of file itkCSVArray2DDataObject.h.

template<class TData >
typedef std::vector<std::string> itk::CSVArray2DDataObject< TData >::StringVectorType

Definition at line 63 of file itkCSVArray2DDataObject.h.

template<class TData >
typedef DataObject itk::CSVArray2DDataObject< TData >::SuperClass

Definition at line 51 of file itkCSVArray2DDataObject.h.


Constructor & Destructor Documentation

template<class TData >
itk::CSVArray2DDataObject< TData >::CSVArray2DDataObject ( ) [protected]
template<class TData >
virtual itk::CSVArray2DDataObject< TData >::~CSVArray2DDataObject ( ) [inline, protected, virtual]

Definition at line 153 of file itkCSVArray2DDataObject.h.

template<class TData >
itk::CSVArray2DDataObject< TData >::CSVArray2DDataObject ( const Self ) [private]

Member Function Documentation

template<class TData >
void itk::CSVArray2DDataObject< TData >::ColumnHeadersPushBack ( const std::string &  )

Method to add a column header to the vector of column headers.

template<class TData >
virtual::itk::LightObject::Pointer itk::CSVArray2DDataObject< TData >::CreateAnother ( void  ) const [virtual]

Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.

Reimplemented from itk::Object.

template<class TData >
void itk::CSVArray2DDataObject< TData >::EraseFirstColumnHeader ( )

Method to erase the first column header if it is the name of the table.

template<class TData >
void itk::CSVArray2DDataObject< TData >::FillMatrix ( TData  value)

Method to fill the Array2D object with a value.

template<class TData >
NumericVectorType itk::CSVArray2DDataObject< TData >::GetColumn ( const std::string &  ) const

Returns a Column. Input to the method is a column header string.

template<class TData >
NumericVectorType itk::CSVArray2DDataObject< TData >::GetColumn ( const unsigned int &  ) const

Get Column method. Input to the method is a column index.

template<class TData >
TData itk::CSVArray2DDataObject< TData >::GetColumnData ( const std::string &  ,
const unsigned int &   
) const

Method to access a data field from a particular column. Inputs are the column header string and the row index.

template<class TData >
StringVectorType itk::CSVArray2DDataObject< TData >::GetColumnHeaders ( ) const

Returns the Column Headers.

template<class TData >
unsigned int itk::CSVArray2DDataObject< TData >::GetColumnIndexByName ( const std::string &  ) const

Returns a Column index by name.

template<class TData >
TData itk::CSVArray2DDataObject< TData >::GetData ( const std::string &  ,
const std::string &   
) const

Method to access a data field from the Array2D object. Inputs are row and column header strings in that order.

template<class TData >
TData itk::CSVArray2DDataObject< TData >::GetData ( const unsigned int &  ,
const unsigned int &   
) const

Method to access a data field from the Array2D object. Inputs are row and column indices in that order.

template<class TData >
virtual bool itk::CSVArray2DDataObject< TData >::GetHasColumnHeaders ( ) const [virtual]

Get macros for Column and Row headers.

template<class TData >
virtual bool itk::CSVArray2DDataObject< TData >::GetHasRowHeaders ( ) const [virtual]

Get macros for Column and Row headers.

template<class TData >
virtual MatrixType itk::CSVArray2DDataObject< TData >::GetMatrix ( ) [virtual]

Get macro for the matrix.

template<class TData >
virtual const char* itk::CSVArray2DDataObject< TData >::GetNameOfClass ( ) const [virtual]

Run-time type information (and related methods).

Reimplemented from itk::DataObject.

template<class TData >
NumericVectorType itk::CSVArray2DDataObject< TData >::GetRow ( const std::string &  ) const

Returns a row. Input to the method is a row header string.

template<class TData >
NumericVectorType itk::CSVArray2DDataObject< TData >::GetRow ( const unsigned int &  ) const

Returns a Row. Input to the method is a row index.

template<class TData >
TData itk::CSVArray2DDataObject< TData >::GetRowData ( const std::string &  ,
const unsigned int &   
) const

Method to access a data field from a particular row. Inputs are the row header string and the column index.

template<class TData >
StringVectorType itk::CSVArray2DDataObject< TData >::GetRowHeaders ( ) const

Returns the Row Headers.

template<class TData >
unsigned int itk::CSVArray2DDataObject< TData >::GetRowIndexByName ( const std::string &  ) const

Returns a Row index by name.

template<class TData >
virtual void itk::CSVArray2DDataObject< TData >::HasColumnHeadersOff ( ) [virtual]

Set macros

template<class TData >
virtual void itk::CSVArray2DDataObject< TData >::HasColumnHeadersOn ( ) [virtual]

Set macros

template<class TData >
virtual void itk::CSVArray2DDataObject< TData >::HasRowHeadersOff ( ) [virtual]

Set macros

template<class TData >
virtual void itk::CSVArray2DDataObject< TData >::HasRowHeadersOn ( ) [virtual]

Set macros

template<class TData >
static Pointer itk::CSVArray2DDataObject< TData >::New ( ) [static]

Standard New method.

Reimplemented from itk::Object.

template<class TData >
TData itk::CSVArray2DDataObject< TData >::operator() ( const std::string &  ,
const std::string &   
) const

Method to access a data field from the Array2D object using the () operator.Inputs are the row and column header strings in that order.

template<class TData >
TData itk::CSVArray2DDataObject< TData >::operator() ( const unsigned int &  ,
const unsigned int &   
) const

Method to access a data field from the Array2D object using the () operator. Inputs are the row and column indices in that order.

template<class TData >
void itk::CSVArray2DDataObject< TData >::operator= ( const Self ) [private]

Reimplemented from itk::DataObject.

template<class TData >
void itk::CSVArray2DDataObject< TData >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const [protected, virtual]

Print method

Reimplemented from itk::DataObject.

template<class TData >
void itk::CSVArray2DDataObject< TData >::RowHeadersPushBack ( const std::string &  )

Method to add a row header to the vector of row headers.

template<class TData >
virtual void itk::CSVArray2DDataObject< TData >::SetHasColumnHeaders ( bool  _arg) [virtual]

Set macros

template<class TData >
virtual void itk::CSVArray2DDataObject< TData >::SetHasRowHeaders ( bool  _arg) [virtual]

Set macros

template<class TData >
void itk::CSVArray2DDataObject< TData >::SetMatrixData ( unsigned  int,
unsigned  int,
TData   
)

Method to set the Array2D object with data at particular row and column indices.

template<class TData >
void itk::CSVArray2DDataObject< TData >::SetMatrixSize ( unsigned  int,
unsigned  int 
)

Method to set the size of the Array2D object.


Member Data Documentation

template<class TData >
StringVectorType itk::CSVArray2DDataObject< TData >::m_ColumnHeaders [private]

Definition at line 159 of file itkCSVArray2DDataObject.h.

template<class TData >
bool itk::CSVArray2DDataObject< TData >::m_HasColumnHeaders [private]

Definition at line 162 of file itkCSVArray2DDataObject.h.

template<class TData >
bool itk::CSVArray2DDataObject< TData >::m_HasRowHeaders [private]

Definition at line 161 of file itkCSVArray2DDataObject.h.

template<class TData >
MatrixType itk::CSVArray2DDataObject< TData >::m_Matrix [private]

Definition at line 158 of file itkCSVArray2DDataObject.h.

template<class TData >
StringVectorType itk::CSVArray2DDataObject< TData >::m_RowHeaders [private]

Definition at line 160 of file itkCSVArray2DDataObject.h.


The documentation for this class was generated from the following file: