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

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
 

Detailed Description

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.


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