19 #ifndef itkCSVArray2DDataObject_h
20 #define itkCSVArray2DDataObject_h
45 template <
typename TData>
69 itkSetMacro(HasColumnHeaders,
bool);
70 itkSetMacro(HasRowHeaders,
bool);
71 itkBooleanMacro(HasColumnHeaders);
72 itkBooleanMacro(HasRowHeaders);
76 itkGetConstMacro(HasColumnHeaders,
bool);
77 itkGetConstMacro(HasRowHeaders,
bool);
109 TData
GetData(
const std::string &,
const std::string &)
const;
113 TData
GetData(
const unsigned int &,
const unsigned int &)
const;
117 TData
GetColumnData(
const std::string &,
const unsigned int &)
const;
121 TData
GetRowData(
const std::string &,
const unsigned int &)
const;
125 TData
operator()(
const std::string &,
const std::string &)
const;
129 TData
operator()(
const unsigned int &,
const unsigned int &)
const;
155 virtual void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
170 #ifndef ITK_MANUAL_INSTANTIATION
171 #include "itkCSVArray2DDataObject.hxx"
SmartPointer< Self > Pointer
A templated class holding a M x N size Matrix.
StringVectorType GetColumnHeaders() const
void FillMatrix(TData value)
NumericVectorType GetColumn(const std::string &) const
std::vector< std::string > StringVectorType
CSVArray2DDataObject Self
Stores parsed data from csv files.
StringVectorType GetRowHeaders() const
void operator=(const Self &)
void SetMatrixData(unsigned int, unsigned int, TData)
TData GetData(const std::string &, const std::string &) const
virtual ~CSVArray2DDataObject()
SmartPointer< const Self > ConstPointer
void RowHeadersPushBack(const std::string &)
void EraseFirstColumnHeader()
void SetMatrixSize(unsigned int, unsigned int)
unsigned int GetColumnIndexByName(const std::string &) const
StringVectorType m_RowHeaders
StringVectorType m_ColumnHeaders
void ColumnHeadersPushBack(const std::string &)
Control indentation during Print() invocation.
TData GetRowData(const std::string &, const unsigned int &) const
std::vector< TData > NumericVectorType
TData operator()(const std::string &, const std::string &) const
itk::Array2D< TData > MatrixType
Base class for most ITK classes.
virtual void PrintSelf(std::ostream &os, Indent indent) const override
unsigned int GetRowIndexByName(const std::string &) const
Base class for all data objects in ITK.
TData GetColumnData(const std::string &, const unsigned int &) const
NumericVectorType GetRow(const std::string &) const