#include <multiArray.hh>
Classes | |
class | Scanner |
Public Member Functions | |
MultiArray (bool commutable=false) | |
T & | operator[] (const uint i[dim]) |
T & | operator[] (uint i[dim]) |
const T & | operator[] (const uint i[dim]) const |
const T & | operator[] (uint i[dim]) const |
Scanner * | scan () const |
bool | isElm (const uint i[dim]) const |
bool | isElm (uint i[dim]) const |
void | commute (uint i[dim]) const |
if commutable_ then order the smallest index to front | |
void | erase (const uint i[dim]) |
void | erase (uint i[dim]) |
void | erase_last () |
uint | size () const |
Size. | |
void | clear () |
Clears the array. | |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. | |
Container typename for multidimensional Array which is based on std::map
Is recursivly defined.
Definition at line 169 of file multiArray.hh.
|
inline |
Constructor If commutable
then the order of the indices is not important, e.g. (i,j) and (j,i) have the same entrance.
Definition at line 234 of file multiArray.hh.
|
inline |
Definition at line 235 of file multiArray.hh.
void concepts::MultiArray< dim, T >::clear | ( | ) |
Clears the array.
Definition at line 403 of file multiArray.hh.
void concepts::MultiArray< dim, T >::commute | ( | uint | i[dim] | ) | const |
if commutable_
then order the smallest index to front
Definition at line 354 of file multiArray.hh.
void concepts::MultiArray< dim, T >::erase | ( | const uint | i[dim] | ) |
Erase entry i
Definition at line 364 of file multiArray.hh.
void concepts::MultiArray< dim, T >::erase_last | ( | ) |
Erase last entry
Definition at line 386 of file multiArray.hh.
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
Definition at line 411 of file multiArray.hh.
bool concepts::MultiArray< dim, T >::isElm | ( | const uint | i[dim] | ) | const |
Checks if the element exists
Definition at line 337 of file multiArray.hh.
T & concepts::MultiArray< dim, T >::operator[] | ( | const uint | i[dim] | ) |
Index operator for the container.
If an item is not existing, it is created, inserted into the array and then returned.
Definition at line 280 of file multiArray.hh.
const T & concepts::MultiArray< dim, T >::operator[] | ( | const uint | i[dim] | ) | const |
Index operator for the container.
Definition at line 311 of file multiArray.hh.
|
inline |
Definition at line 252 of file multiArray.hh.
uint concepts::MultiArray< dim, T >::size | ( | ) | const |
Size.
Definition at line 393 of file multiArray.hh.