Table< T > Class Template Reference
|
CPP API
|
mio::timing::details::Table< T > Class Template Reference
Table used by TablePrinter with named rows and columns. With some extra work, this could be reused elsewhere. More...
#include <table_printer.h>
Classes | |
| struct | Row |
Public Member Functions | |
| void | add_row (const std::string &name) |
| void | add_row (const std::string &name, const std::vector< T > &values) |
| size_t | cols () const |
| std::string & | get_col_name (size_t col) |
| std::string & | get_name () |
| std::string & | get_row_name (size_t row) |
| T & | operator() (size_t row, size_t col) |
| size_t | rows () const |
| Table (const std::string &name, const std::vector< std::string > &column_names, const std::vector< std::string > &row_names={}) | |
Private Attributes | |
| std::vector< std::string > | m_column_names |
| std::string | m_name |
| std::vector< Row > | m_rows |
Detailed Description
template<class T>
class mio::timing::details::Table< T >
Table used by TablePrinter with named rows and columns. With some extra work, this could be reused elsewhere.
Constructor & Destructor Documentation
◆ Table()
template<class T >
|
inline |
Member Function Documentation
◆ add_row() [1/2]
template<class T >
|
inline |
◆ add_row() [2/2]
template<class T >
|
inline |
◆ cols()
template<class T >
|
inline |
◆ get_col_name()
template<class T >
|
inline |
◆ get_name()
template<class T >
|
inline |
◆ get_row_name()
template<class T >
|
inline |
◆ operator()()
template<class T >
|
inline |
◆ rows()
template<class T >
|
inline |
Member Data Documentation
◆ m_column_names
template<class T >
|
private |
◆ m_name
template<class T >
|
private |
◆ m_rows
template<class T >
|
private |
Generated by