![]() |
Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
|
#include <Table.hpp>

Public Member Functions | |
| Table () | |
| Basic Constructor. More... | |
| Table (const Matrix< int > &mtx, bool col_name=false, bool row_name=false) | |
| Constructor from matrix. Each columns is converted to the table with appropriated type. More... | |
| Table (const Matrix< float > &mtx, bool col_name=false, bool row_name=false) | |
| Constructor from matrix. Each columns is converted to the table with appropriated type. More... | |
| Table (const Matrix< std::string > &mtx, bool col_name=false, bool row_name=false) | |
| Constructor from matrix. Each columns is converted to the table with appropriated type. More... | |
| void | PushBack (const Vector< int > &vct) |
| Pushes back a vector to the end of the list. More... | |
| void | PushBack (const Vector< float > &vct) |
| Pushes back a vector to the end of the list. More... | |
| void | PushBack (const Vector< std::string > &vct) |
| Pushes back a vector to the end of the list. More... | |
| void | PushBack (const TableColumn &vct) |
| Pushes back a vector to the end of the list. More... | |
| const TableColumn & | operator[] (size_t p) const |
| Returns a constant reference of data pointed by index p. It has the same effect as operator data( p ). More... | |
| TableColumn & | operator[] (size_t p) |
| Returns the reference for data pointed by index p. It has the same effect as operator data( p ). More... | |
| const TableColumn & | operator() (size_t p) const |
| Returns a constant reference of data pointed by index p. It has the same effect as operator data( p ). More... | |
| TableColumn & | operator() (size_t p) |
| Returns the reference for data pointed by index p. It has the same effect as operator data( p ). More... | |
| const TableCell & | operator() (size_t col, size_t row) const |
| Returns a constant reference of data pointed by indexes col, row. More... | |
| TableCell & | operator() (size_t col, size_t row) |
| Returns the reference for data pointed by indexes col, row. More... | |
| size_t | Rows () const |
| Returns the number of rows in table. More... | |
| size_t | Columns () const |
| Returns the number of columns in table. More... | |
| void | Write (std::string filename) const |
| Writes table containts into a file. More... | |
| template<class O > | |
| O & | Print (O &os, bool transpose=false) const |
| Prints table containts to output stream os. More... | |
| template<class O > | |
| O & | PrintDimensions (O &os) const |
| Prints table dimensions to output stream os. More... | |
Protected Attributes | |
| Vector< TableColumn > | _data |
| Bial::Table::Table | ( | ) |
Basic Constructor.
| none. |
Constructor from matrix. Each columns is converted to the table with appropriated type.
| mtx | Source maitrix to be copied. |
| col_name | set first column as name. |
| row_name | set first row as name. |
Constructor from matrix. Each columns is converted to the table with appropriated type.
| mtx | Source maitrix to be copied. |
| col_name | set first column as name. |
| row_name | set first row as name. |
| Bial::Table::Table | ( | const Matrix< std::string > & | mtx, |
| bool | col_name = false, |
||
| bool | row_name = false |
||
| ) |
Constructor from matrix. Each columns is converted to the table with appropriated type.
| mtx | Source maitrix to be copied. |
| col_name | set first column as name. |
| row_name | set first row as name. |
| size_t Bial::Table::Columns | ( | ) | const |
Returns the number of columns in table.
| none. |
| const TableColumn& Bial::Table::operator() | ( | size_t | p | ) | const |
Returns a constant reference of data pointed by index p. It has the same effect as operator data( p ).
| p | a global index to be acessed. |
| TableColumn& Bial::Table::operator() | ( | size_t | p | ) |
Returns the reference for data pointed by index p. It has the same effect as operator data( p ).
| p | a global index to be acessed. |
Returns a constant reference of data pointed by indexes col, row.
| col | column to be acessed. |
| row | row to be acessed. |
| TableCell& Bial::Table::operator() | ( | size_t | col, |
| size_t | row | ||
| ) |
Returns the reference for data pointed by indexes col, row.
| col | column to be acessed. |
| row | row to be acessed. |
| const TableColumn& Bial::Table::operator[] | ( | size_t | p | ) | const |
Returns a constant reference of data pointed by index p. It has the same effect as operator data( p ).
| p | a global index to be acessed. |
| TableColumn& Bial::Table::operator[] | ( | size_t | p | ) |
Returns the reference for data pointed by index p. It has the same effect as operator data( p ).
| p | a global index to be acessed. |
| O& Bial::Table::Print | ( | O & | os, |
| bool | transpose = false |
||
| ) | const |
Prints table containts to output stream os.
| os | an output stream. |
| transpose | if the table should be printed transposed or not. |
| O& Bial::Table::PrintDimensions | ( | O & | os | ) | const |
Prints table dimensions to output stream os.
| none. |
Pushes back a vector to the end of the list.
| vct | Vector to be inserted into the end of the table. |
Pushes back a vector to the end of the list.
| vct | Vector to be inserted into the end of the table. |
Pushes back a vector to the end of the list.
| vct | Vector to be inserted into the end of the table. |
| void Bial::Table::PushBack | ( | const TableColumn & | vct | ) |
Pushes back a vector to the end of the list.
| vct | Vector to be inserted into the end of the table. |
| size_t Bial::Table::Rows | ( | ) | const |
Returns the number of rows in table.
| none. |
| void Bial::Table::Write | ( | std::string | filename | ) | const |
Writes table containts into a file.
| filename | Name of the file to write table in. |
|
protected |