Public Member Functions | Private Member Functions | Private Attributes

LibGeoDecomp::HilbertPartition::Iterator Class Reference

#include <hilbertpartition.h>

Inherits LibGeoDecomp::SpaceFillingCurve::Iterator.

Collaboration diagram for LibGeoDecomp::HilbertPartition::Iterator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Iterator (const Coord< 2 > &origin, const Coord< 2 > &dimensions, const unsigned &pos=0, const Form &form=LL_TO_LR)
 Iterator (const Coord< 2 > &origin)
Iteratoroperator++ ()

Private Member Functions

void operatorIncTrivial ()
void operatorIncCached ()
void digUpDown ()
void digDown (const unsigned &offset)
void digDownTrivial (const Coord< 2 > &origin, const Coord< 2 > &dimensions, const unsigned &offset)
void digDownCached (const Coord< 2 > &origin, const Coord< 2 > &dimensions, const unsigned &offset, const Form &form)
void digDownRecursion (const unsigned &offset, Square currentSquare)
void digUp ()
bool isCached (const Coord< 2 > &dimensions) const

Private Attributes

std::vector< SquaresquareStack
unsigned trivialSquareHorizontal
unsigned trivialSquareCounter
Coord< 2 > cachedSquareOrigin
Coord< 2 > * cachedSquareCoordsIterator
Coord< 2 > * cachedSquareCoordsEnd

Constructor & Destructor Documentation

LibGeoDecomp::HilbertPartition::Iterator::Iterator ( const Coord< 2 > &  origin,
const Coord< 2 > &  dimensions,
const unsigned pos = 0,
const Form form = LL_TO_LR 
) [inline]

References digDown(), and squareStack.

LibGeoDecomp::HilbertPartition::Iterator::Iterator ( const Coord< 2 > &  origin  )  [inline, explicit]

Member Function Documentation

void LibGeoDecomp::HilbertPartition::Iterator::digDown ( const unsigned offset  )  [inline, private]
void LibGeoDecomp::HilbertPartition::Iterator::digDownCached ( const Coord< 2 > &  origin,
const Coord< 2 > &  dimensions,
const unsigned offset,
const Form form 
) [inline, private]
void LibGeoDecomp::HilbertPartition::Iterator::digDownRecursion ( const unsigned offset,
Square  currentSquare 
) [inline, private]
void LibGeoDecomp::HilbertPartition::Iterator::digDownTrivial ( const Coord< 2 > &  origin,
const Coord< 2 > &  dimensions,
const unsigned offset 
) [inline, private]
void LibGeoDecomp::HilbertPartition::Iterator::digUp (  )  [inline, private]
void LibGeoDecomp::HilbertPartition::Iterator::digUpDown (  )  [inline, private]
bool LibGeoDecomp::HilbertPartition::Iterator::isCached ( const Coord< 2 > &  dimensions  )  const [inline, private]
Iterator& LibGeoDecomp::HilbertPartition::Iterator::operator++ (  )  [inline]
void LibGeoDecomp::HilbertPartition::Iterator::operatorIncCached (  )  [inline, private]
void LibGeoDecomp::HilbertPartition::Iterator::operatorIncTrivial (  )  [inline, private]

Member Data Documentation

Referenced by digDownCached(), and operatorIncCached().

Referenced by digDownCached(), and operatorIncCached().

Referenced by digDownCached(), and operatorIncCached().


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