19 #ifndef __itkCSVArray2DDataObject_h
20 #define __itkCSVArray2DDataObject_h
45 template <
class TData>
69 itkSetMacro(HasColumnHeaders,
bool);
70 itkSetMacro(HasRowHeaders,
bool);
71 itkBooleanMacro(HasColumnHeaders);
72 itkBooleanMacro(HasRowHeaders);
76 itkGetConstMacro(HasColumnHeaders,
bool);
77 itkGetConstMacro(HasRowHeaders,
bool);
90 unsigned int GetRowIndexByName(
const std::string &)
const;
93 unsigned int GetColumnIndexByName(
const std::string &)
const;
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;
132 void SetMatrixSize(
unsigned int,
unsigned int);
135 void FillMatrix(TData value);
139 void SetMatrixData(
unsigned int,
unsigned int, TData);
142 void RowHeadersPushBack(
const std::string &);
145 void ColumnHeadersPushBack(
const std::string &);
148 void EraseFirstColumnHeader();
155 void PrintSelf(std::ostream & os,
Indent indent)
const;
165 void operator=(
const Self &);
170 #ifndef ITK_MANUAL_INSTANTIATION
171 #include "itkCSVArray2DDataObject.hxx"