KrisLibrary
1.0.0
|
A 3D lattice of regular ranges. More...
#include <indexing.h>
Classes | |
struct | iterator |
Public Member Functions | |
Range3Indices (const Range3Indices &rhs) | |
Range3Indices (const RangeIndices &irange, const RangeIndices &jrange, const RangeIndices &krange) | |
Range3Indices (int imax, int jmax, int kmax) | |
Range3Indices (int imin, int imax, int jmin, int jmax, int kmin, int kmax) | |
void | enumerate (std::vector< IntTriple > &indices) |
IntTriple | operator() (int i, int j, int k) const |
IntTriple | operator() (const IntTriple &t) const |
bool | contains (int iindex, int jindex, int kindex) const |
bool | contains (const IntTriple &t) const |
IntTriple | indexToElement (int iindex, int jindex, int kindex) const |
iterator | begin () const |
iterator | end () const |
Public Attributes | |
RangeIndices | irange |
RangeIndices | jrange |
RangeIndices | krange |
A 3D lattice of regular ranges.
Can be accessed with an iterator class, which iterates over the second coordinate first, then the first (lexicographically ordered). Efficient index computation.