KrisLibrary  1.0.0
Classes | Public Member Functions | Public Attributes | List of all members
Grid2Indices Struct Reference

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
 

Detailed Description

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.


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