multiArray.hh
Go to the documentation of this file.
210 // DEBUGL(MultiArrayScanner_D, i_->first << ", " << (*j2)() << ", " << j2 << ", " << j2->eos());
212 // DEBUGL(MultiArrayScanner_D, i_->first << ", " << (*j_)() << ", " << j_ << ", " << j_->eos());
const MultiEntrance< dim, T > operator()() const
Definition: multiArray.hh:192
virtual std::ostream & info(std::ostream &os) const
Definition: multiArray.hh:411
std::map< uint, MultiArray< dim-1, T > >::const_iterator i_
Iterator in current MultiArray, which holds the index and the array of smaller dimension.
Definition: multiArray.hh:223
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
Definition: multiArray.hh:129
std::map< uint, MultiArray< dim-1, T > >::const_iterator end_
Iterator for the end of the mapping.
Definition: multiArray.hh:225
const MultiEntrance< 1, T > operator()() const
Definition: multiArray.hh:455
Class for scanning (iterating) over the array in all dimensions.
Definition: multiArray.hh:173
MultiArray< dim-1, T >::Scanner * j_
Scanner of the entrances of smaller dimensions.
Definition: multiArray.hh:227
void erase(uint i[dim])
bool isElm(uint i[dim]) const
Definition: multiArray.hh:118
#define conceptsAssert(cond, exc)
Assert that a certain condition is fulfilled.
Definition: exceptions.hh:394
An array of objects of fix length, defined by template parameter dim.
Definition: stiffArray.hh:29
#define DEBUGL(doit, msg)
MultiEntrance(const uint i, const T &value)
Definition: multiArray.hh:145
uint operator()(const uint j=0) const
Definition: multiArray.hh:146
Container typename for multidimensional Array which is based on std::map.
Definition: multiArray.hh:33
Definition: multiArray.hh:43
const MultiEntrance< dim, T > operator++(int)
Definition: multiArray.hh:196
std::map< uint, T >::const_iterator end_
Definition: multiArray.hh:473
Scanner(const MultiArray< 1, T > array)
Definition: multiArray.hh:451
Definition: multiArray.hh:143
std::map< uint, MultiArray< dim-1, T > > data_
array of arrays of the dimension dim-1
Definition: multiArray.hh:274
void commute(uint i[dim]) const
if commutable_ then order the smallest index to front
Definition: multiArray.hh:354
std::map< uint, T >::const_iterator i_
Iterator in current MultiArray, which holds the index and the array of smaller dimension.
Definition: multiArray.hh:472
void memorycpy(F *dest, const G *src, size_t n)
Copies n entries from src to dest (faster than std::memcpy)
Definition: vectorsMatrices.hh:31
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
Definition: multiArray.hh:103
Exception class to express that an index in a dynamic array does not exist.
Definition: exceptions.hh:191
MultiEntrance(const uint i, const MultiEntrance< dim-1, T > ent)
Definition: multiArray.hh:120
const MultiEntrance< 1, T > operator++(int)
Definition: multiArray.hh:458
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
Definition: multiArray.hh:152
Container typename for multidimensional Array which is based on std::map.
Definition: multiArray.hh:445
Scanner(const MultiArray< dim, T > array)
Definition: multiArray.hh:175
MultiArray(bool commutable=false)
Constructor If commutable then the order of the indices is not important, e.g.
Definition: multiArray.hh:234
Scanner(const Scanner &scan)
Definition: multiArray.hh:453