MADNESS 0.10.1
|
#include <indexit.h>
Public Member Functions | |
template<typename V > | |
LowDimIndexIterator (const V &limits) | |
Iterates dimension d from 0 to limts[d]-1 inclusive. | |
LowDimIndexIterator (int ndim, const long limits[]) | |
Iterates dimension d from 0 to limts[d]-1 inclusive. | |
LowDimIndexIterator (int ndim, long top) | |
Iterates all dimensions from 0 to top-1 inclusive. | |
virtual | ~LowDimIndexIterator () |
virtual IndexIterator & | operator++ () |
Public Member Functions inherited from madness::IndexIterator | |
template<typename V > | |
IndexIterator (const V &limits) | |
Iterates dimension d from 0 to limts[d]-1 inclusive. | |
IndexIterator (int ndim, const long limits[]) | |
Iterates dimension d from 0 to limts[d]-1 inclusive. | |
IndexIterator (int ndim, long top) | |
Iterates all dimensions from 0 to top-1 inclusive. | |
virtual | ~IndexIterator () |
operator bool () const | |
const std::vector< long > & | operator* () const |
long | operator[] (int d) const |
IndexIterator & | reset () |
Private Member Functions | |
LowDimIndexIterator () | |
Bury the default constructor. | |
Additional Inherited Members | |
Static Public Member Functions inherited from madness::IndexIterator | |
static void | test () |
this function should also be deprecated | |
Protected Attributes inherited from madness::IndexIterator | |
bool | finished |
std::vector< long > | i |
Current index. | |
std::vector< long > | n |
User specified upper limits for each dimension. | |
The inherited IndexIterator for iterating over the low dimensions quickly and the high dimensions slowly (all elements of dimension ndim-1 at index i will be visited before any element of index i+1 in dim. ndim-1).
|
inlineprivate |
Bury the default constructor.
Iterates dimension d from 0 to limts[d]-1 inclusive.
|
inline |
Iterates dimension d from 0 to limts[d]-1 inclusive.
|
inline |
Iterates all dimensions from 0 to top-1 inclusive.
|
inlinevirtual |
|
inlinevirtual |
increment the lowest dimension first and check for overflows up through dimension 0
Reimplemented from madness::IndexIterator.
References d, madness::IndexIterator::finished, madness::IndexIterator::i, and madness::IndexIterator::n.