#include <mtable.h>
Inheritance diagram for PackTable::
Public Methods | |
PackTable () | |
PackTable (int rs, int cs) | |
PackTable (const PackTable &orig, bool deep=false) | |
~PackTable () | |
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 |
Protected Attributes | |
TYPE* | data |
Ideal for storing numeric matrices; any mathematical matrix implementation would most probably inherit PackTable<double>.
Definition at line 30 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 90 of file mtable.h. Referenced by 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 122 of file mtable.h. Referenced by 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 103 of file mtable.h. Referenced by PackTable(), and Matrix::make(). |
|
Number of columns in the table.
|
|
Number of rows in the table.
|