KrisLibrary
1.0.0
|
A 2D lattice of irregular ranges. More...
#include <indexing.h>
Classes | |
struct | iterator |
Public Member Functions | |
void | enumerate (std::vector< IntPair > &indices) |
IntPair | operator() (int i, int j) const |
IntPair | operator() (const IntPair &t) const |
bool | contains (int iindex, int jindex) const |
iterator | begin () const |
iterator | end () const |
iterator | beginRange (const Range2Indices &r) const |
iterator | endRange (const Range2Indices &r) const |
Public Attributes | |
IntTuple | iindices |
IntTuple | jindices |
A 2D lattice of irregular ranges.
Can be accessed with an iterator class, which iterates over the second coordinate first, then the first (lexicographically ordered). Efficient index computation.