32 throw std::range_error(
"Row index out of range.");
83 for (; ci != row.
m_columns.cend() - 1; ++ci) {
84 (*ci)->print(row.
row(), s);
87 (*ci)->print(row.
row(), s);
virtual Column_sptr getColumn(const std::string &name)=0
Gets the shared pointer to a column by name.
virtual size_t columnCount() const =0
Number of columns in the workspace.
Helper class used to create TableRow.
ITableWorkspace * m_workspace
Pointer to the TableWorkspace.
TableRow represents a row in a TableWorkspace.
bool next()
Steps to the next row in the TableWorkspace if there is one.
std::vector< Column_sptr > m_columns
Pointers to the columns in the ITableWorkspace.
size_t m_col
Current column number (for streaming operations)
size_t m_row
Row number in the TableWorkspace.
bool prev()
Steps to the previous row in the TableWorkspace if there is one.
const TableRow & operator>>(T &t) const
Output streaming operator.
size_t row() const
Returns the row number of the TableRow.
size_t m_nrows
Number of rows in the TableWorkspace.
TableRow(const TableRowHelper &trh)
Constructor.
std::string m_sep
Separator character(s) between elements in a text output.
size_t size() const
Returns the number of rows in the TableWorkspace.
MANTID_API_DLL std::ostream & operator<<(std::ostream &, const AlgorithmHistory &)
Prints a text representation.
As TableColumn stores its data in a std::vector bool type cannot be used in the same way as the other...