19#ifndef itkCSVArray2DDataObject_h
20#define itkCSVArray2DDataObject_h
46template <
typename TData>
72 itkSetMacro(HasColumnHeaders,
bool);
73 itkSetMacro(HasRowHeaders,
bool);
74 itkBooleanMacro(HasColumnHeaders);
75 itkBooleanMacro(HasRowHeaders);
79 itkGetConstMacro(HasColumnHeaders,
bool);
80 itkGetConstMacro(HasRowHeaders,
bool);
121 GetData(
const std::string &,
const std::string &)
const;
126 GetData(
const unsigned int,
const unsigned int)
const;
190#ifndef ITK_MANUAL_INSTANTIATION
191# include "itkCSVArray2DDataObject.hxx"
Array2D class representing a 2D array.
unsigned int GetColumnIndexByName(const std::string &) const
TData GetColumnData(const std::string &, const unsigned int) const
CSVArray2DDataObject Self
unsigned int GetRowIndexByName(const std::string &) const
TData GetRowData(const std::string &, const unsigned int) const
typename itk::Array2D< TData > MatrixType
StringVectorType m_ColumnHeaders
SmartPointer< Self > Pointer
void PrintSelf(std::ostream &os, Indent indent) const override
NumericVectorType GetColumn(const unsigned int) const
CSVArray2DDataObject()=default
NumericVectorType GetRow(const std::string &) const
TData operator()(const unsigned int, const unsigned int) const
typename std::vector< TData > NumericVectorType
TData GetData(const unsigned int, const unsigned int) const
TData GetData(const std::string &, const std::string &) const
StringVectorType GetRowHeaders() const
NumericVectorType GetColumn(const std::string &) const
typename std::vector< std::string > StringVectorType
SmartPointer< const Self > ConstPointer
void SetMatrixData(unsigned int, unsigned int, TData)
void FillMatrix(TData value)
~CSVArray2DDataObject() override=default
void ColumnHeadersPushBack(const std::string &)
StringVectorType GetColumnHeaders() const
void RowHeadersPushBack(const std::string &)
NumericVectorType GetRow(const unsigned int) const
TData operator()(const std::string &, const std::string &) const
void EraseFirstColumnHeader()
StringVectorType m_RowHeaders
void SetMatrixSize(unsigned int, unsigned int)
Control indentation during Print() invocation.
A templated class holding a M x N size Matrix.
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....