MADNESS  version 0.9
Public Member Functions | List of all members
madness::LowDimIndexIterator Class Reference

#include <indexit.h>

Inheritance diagram for madness::LowDimIndexIterator:
Inheritance graph
[legend]
Collaboration diagram for madness::LowDimIndexIterator:
Collaboration graph
[legend]

Public Member Functions

template<typename V >
 LowDimIndexIterator (const V &limits)
 Iterates dimension d from 0 to limts[d]-1 inclusive. More...
 
 LowDimIndexIterator (int ndim, const long limits[])
 Iterates dimension d from 0 to limts[d]-1 inclusive. More...
 
 LowDimIndexIterator (int ndim, long top)
 Iterates all dimensions from 0 to top-1 inclusive. More...
 
virtual ~LowDimIndexIterator ()
 
virtual IndexIteratoroperator++ ()
 
- Public Member Functions inherited from madness::IndexIterator
template<typename V >
 IndexIterator (const V &limits)
 Iterates dimension d from 0 to limts[d]-1 inclusive. More...
 
 IndexIterator (int ndim, const long limits[])
 Iterates dimension d from 0 to limts[d]-1 inclusive. More...
 
 IndexIterator (int ndim, long top)
 Iterates all dimensions from 0 to top-1 inclusive. More...
 
virtual ~IndexIterator ()
 
IndexIteratorreset ()
 
long operator[] (int d) const
 
const std::vector< long > & operator* () const
 
 operator bool () const
 

Additional Inherited Members

- Static Public Member Functions inherited from madness::IndexIterator
static void test ()
 this function should also be deprecated More...
 
- Protected Attributes inherited from madness::IndexIterator
std::vector< long > n
 User specified upper limits for each dimension. More...
 
std::vector< long > i
 Current index. More...
 
bool finished
 

Detailed Description

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).

Constructor & Destructor Documentation

template<typename V >
madness::LowDimIndexIterator::LowDimIndexIterator ( const V limits)
inline

Iterates dimension d from 0 to limts[d]-1 inclusive.

madness::LowDimIndexIterator::LowDimIndexIterator ( int  ndim,
const long  limits[] 
)
inline

Iterates dimension d from 0 to limts[d]-1 inclusive.

madness::LowDimIndexIterator::LowDimIndexIterator ( int  ndim,
long  top 
)
inline

Iterates all dimensions from 0 to top-1 inclusive.

virtual madness::LowDimIndexIterator::~LowDimIndexIterator ( )
inlinevirtual

Member Function Documentation

virtual IndexIterator& madness::LowDimIndexIterator::operator++ ( )
inlinevirtual

increment the lowest dimension first and check for overflows up through dimension 0

Reimplemented from madness::IndexIterator.

References madness::IndexIterator::finished, madness::IndexIterator::i, and madness::IndexIterator::n.


The documentation for this class was generated from the following file: