Container typename for multidimensional Array which is based on std::map. More...
#include <multiArray.hh>


Classes | |
| class | Scanner |
| Class for scanning (iterating) over the array in all dimensions. More... | |
Public Member Functions | |
| void | clear () |
| Clears the array. | |
| void | erase (uint i) |
| void | erase (const uint i[1]) |
Erase entry i. | |
| bool | isElm (const uint i[1]) const |
| Checks if the element exists. | |
| bool | isElm (const uint i) const |
| MultiArray (bool commutable=false) | |
| Constructor. | |
| const T & | operator[] (const uint i[1]) const |
| Index operator for the container. | |
| T & | operator[] (const uint i) |
| Index operator for the container. | |
| const T & | operator[] (const uint i) const |
| Index operator for the container. | |
| T & | operator[] (const uint i[1]) |
| Index operator for the container. | |
| Scanner * | scan () const |
| Scanner over the entrances. | |
| uint | size () const |
| Number of entrances. | |
| ~MultiArray () | |
Protected Member Functions | |
| virtual std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
Private Attributes | |
| std::map< uint, T > | data_ |
| array of T | |
Container typename for multidimensional Array which is based on std::map.
First level, 1-dimensional array
Definition at line 432 of file multiArray.hh.
| concepts::MultiArray< 1, T >::MultiArray | ( | bool | commutable = false | ) | [inline] |
Constructor.
Commutability for one-dimensional array not important, its here for the recursive definition.
Definition at line 467 of file multiArray.hh.
| concepts::MultiArray< 1, T >::~MultiArray | ( | ) | [inline] |
| void concepts::MultiArray< 1, T >::clear | ( | ) | [inline] |
Clears the array.
Definition at line 512 of file multiArray.hh.
| void concepts::MultiArray< 1, T >::erase | ( | const uint | i[1] | ) | [inline] |
Erase entry i.
Definition at line 503 of file multiArray.hh.

| void concepts::MultiArray< 1, T >::erase | ( | uint | i | ) | [inline] |
Definition at line 504 of file multiArray.hh.
| std::ostream & concepts::MultiArray< 1, T >::info | ( | std::ostream & | os | ) | const [protected, virtual] |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
Definition at line 535 of file multiArray.hh.

| bool concepts::MultiArray< 1, T >::isElm | ( | const uint | i[1] | ) | const [inline] |
Checks if the element exists.
Definition at line 499 of file multiArray.hh.

| bool concepts::MultiArray< 1, T >::isElm | ( | const uint | i | ) | const |
Definition at line 529 of file multiArray.hh.
| const T& concepts::MultiArray< 1, T >::operator[] | ( | const uint | i[1] | ) | const [inline] |
Index operator for the container.
Definition at line 481 of file multiArray.hh.
| const T & concepts::MultiArray< 1, T >::operator[] | ( | const uint | i | ) | const |
Index operator for the container.
Definition at line 521 of file multiArray.hh.
| T& concepts::MultiArray< 1, T >::operator[] | ( | const uint | i | ) | [inline] |
Index operator for the container.
If an item is not existing, it is created, inserted into the array and then returned.
Definition at line 489 of file multiArray.hh.
| T& concepts::MultiArray< 1, T >::operator[] | ( | const uint | i[1] | ) | [inline] |
Index operator for the container.
If an item is not existing, it is created, inserted into the array and then returned.
Definition at line 476 of file multiArray.hh.
| Scanner* concepts::MultiArray< 1, T >::scan | ( | ) | const [inline] |
Scanner over the entrances.
Definition at line 496 of file multiArray.hh.
| uint concepts::MultiArray< 1, T >::size | ( | ) | const [inline] |
Number of entrances.
Definition at line 509 of file multiArray.hh.
std::map<uint, T> concepts::MultiArray< 1, T >::data_ [private] |
array of T
Definition at line 517 of file multiArray.hh.