#include <mtable.h>
Inheritance diagram for PackTable:
Public Methods | |
PackTable () | |
PackTable (int rs, int cs) | |
PackTable (const PackTable &orig, bool deep=false) | |
void | destroy () |
virtual void | make (int nrows, int ncols) |
const TYPE & | get (int row, int col) const |
TYPE & | get (int row, int col) |
Public Attributes | |
int | rows |
int | cols |
Ideal for storing numeric matrices; any mathematical matrix implementation would most probably inherit PackTable<double>.
Definition at line 56 of file mtable.h.
|
Creates a null-sized table. Dimensions can be given later with the make() method. |
|
Creates a Table.
|
|
Copy constructor. Copying is shallow by default: works *fast* with native types, but messes more complex objects up. Use with caution.
|
|
Destroys the content of the Table, as well as its dimensions. Can be resized later with the make() method. Definition at line 116 of file mtable.h. Referenced by PackTable< double >::make(). |
|
Retrieves a reference to an item in the Table. Non-const version.
|
|
Retrieves a reference to an item in the Table. Const version.
Definition at line 148 of file mtable.h. Referenced by PackTable< double >::PackTable(). |
|
Creates or recreates the Table with the given dimensions. If the Table has any old contents, they are destroyed.
Reimplemented in Matrix. Definition at line 129 of file mtable.h. Referenced by Matrix::make(), and PackTable< double >::PackTable(). |
|
Number of columns in the table.
Definition at line 202 of file mtable.h. Referenced by PackTable< double >::destroy(), PackTable< double >::get(), PackTable< double >::make(), and PackTable< double >::PackTable(). |
|
Number of rows in the table.
Definition at line 199 of file mtable.h. Referenced by PackTable< double >::destroy(), PackTable< double >::get(), PackTable< double >::make(), and PackTable< double >::PackTable(). |