![]() |
User Manual, Developers Guide and API Documentation |
![]() |
#include <container/DynamicMatrix.hpp>

Public Member Functions | |
| DynamicMatrix (std::list< int > dimensionSizes) | |
| Constructor. | |
| ValueType & | getValue (std::list< int > indices) |
| Get reference to Value at position given through list of indices. | |
| const ValueType & | getValue (std::list< int > indices) const |
| Get const reference to Value at position given through list of indices. | |
| void | setValue (std::list< int > indices, ValueType value) |
| Set value at position given through list of indices. | |
| ~DynamicMatrix () | |
| Recursively delete all submatrices and the cells. | |
Private Types | |
| typedef T | ValueType |
Private Member Functions | |
| const ValueType & | getValue () const |
| return cell value const reference | |
| ValueType & | getValue () |
| return cell value reference | |
| void | setValue (ValueType v) |
| set cell value | |
Private Attributes | |
| Cell * | cell_ |
| pointer to a cell with the value. Only set when dim_ == 0 | |
| int | dim_ |
| number of dimensions this (sub-)matrix has | |
| std::vector< DynamicMatrix * > | subMatrices_ |
| array of subtrees connected to this node | |
Classes | |
| struct | Cell |
| The last recursion contains an actual value, wrapped in a Cell Object. More... | |
Definition at line 51 of file DynamicMatrix.hpp.
typedef T wns::container::DynamicMatrix< T >::ValueType [private] |
Definition at line 53 of file DynamicMatrix.hpp.
| wns::container::DynamicMatrix< T >::DynamicMatrix | ( | std::list< int > | dimensionSizes | ) | [inline] |
The constructor recursively constructs a number of sub-matrices with the dimensions and sizes given in the list
Definition at line 79 of file DynamicMatrix.hpp.
| wns::container::DynamicMatrix< T >::~DynamicMatrix | ( | ) | [inline] |
Definition at line 101 of file DynamicMatrix.hpp.
| const ValueType& wns::container::DynamicMatrix< T >::getValue | ( | ) | const [inline, private] |
Definition at line 192 of file DynamicMatrix.hpp.
| ValueType& wns::container::DynamicMatrix< T >::getValue | ( | ) | [inline, private] |
Definition at line 182 of file DynamicMatrix.hpp.
| ValueType& wns::container::DynamicMatrix< T >::getValue | ( | std::list< int > | indices | ) | [inline] |
Definition at line 141 of file DynamicMatrix.hpp.
| const ValueType& wns::container::DynamicMatrix< T >::getValue | ( | std::list< int > | indices | ) | const [inline] |
Definition at line 120 of file DynamicMatrix.hpp.
| void wns::container::DynamicMatrix< T >::setValue | ( | ValueType | v | ) | [inline, private] |
Definition at line 202 of file DynamicMatrix.hpp.
| void wns::container::DynamicMatrix< T >::setValue | ( | std::list< int > | indices, | |
| ValueType | value | |||
| ) | [inline] |
Definition at line 161 of file DynamicMatrix.hpp.
Cell* wns::container::DynamicMatrix< T >::cell_ [private] |
Definition at line 71 of file DynamicMatrix.hpp.
int wns::container::DynamicMatrix< T >::dim_ [private] |
Definition at line 69 of file DynamicMatrix.hpp.
std::vector<DynamicMatrix*> wns::container::DynamicMatrix< T >::subMatrices_ [private] |
Definition at line 66 of file DynamicMatrix.hpp.
1.5.5