|
Stimfit @PACKAGE_VERSION@
|
A table used for printing information. More...
#include <stfnum.h>
Public Member Functions | |
| Table (std::size_t nRows, std::size_t nCols) | |
| Constructor. | |
| Table (const std::map< std::string, double > &map) | |
| Constructor. | |
| double | at (std::size_t row, std::size_t col) const |
| Range-checked access. Returns a copy. Throws std::out_of_range if out of range. | |
| double & | at (std::size_t row, std::size_t col) |
| Range-checked access. Returns a reference. Throws std::out_of_range if out of range. | |
| bool | IsEmpty (std::size_t row, std::size_t col) const |
| Check whether a cell is empty. | |
| void | SetEmpty (std::size_t row, std::size_t col, bool value=true) |
| Empties or un-empties a cell. | |
| void | SetRowLabel (std::size_t row, const std::string &label) |
| Sets the label of a row. | |
| void | SetColLabel (std::size_t col, const std::string &label) |
| Sets the label of a column. | |
| const std::string & | GetRowLabel (std::size_t row) const |
| Retrieves the label of a row. | |
| const std::string & | GetColLabel (std::size_t col) const |
| Retrieves the label of a column. | |
| std::size_t | nRows () const |
| Retrieves the number of rows. | |
| std::size_t | nCols () const |
| Retrieves the number of columns. | |
| void | AppendRows (std::size_t nRows) |
| Appends rows to the table. | |
A table used for printing information.
Members will throw std::out_of_range if out of range.