HDK
|
Base class for ranges providing consolidation to contiguous blocks. More...
#include <GA_RTISingle.h>
Protected Member Functions | |
virtual void | singleRewind (GA_IteratorState &state) const =0 |
virtual bool | singleGet (const GA_IteratorState &state, GA_Offset &value) const =0 |
virtual void | singleNext (GA_IteratorState &state) const =0 |
Protected Member Functions inherited from GA_RangeTypeInterface | |
bool | getPageElementRangeNonSplittable () const |
Method which can be called for getPageElementRange() More... | |
GA_Offset | getFirstOffsetInPageNonSplittable () const |
Method which can be called for getFirstOffsetInPage() More... | |
GA_Size | computeEntries () const |
This method creates an iterator and counts the entries. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from GA_RangeTypeInterface | |
static void * | operator new (size_t size, void *p) |
static void * | operator new (size_t size) |
static void | operator delete (void *p, size_t size) |
Base class for ranges providing consolidation to contiguous blocks.
GA_Iterator uses contiguous blocks for iteration, but it is often easier to implement iteration over single elements. Such range implementations can derive from this class to automatically perform the required consolidation.
Definition at line 31 of file GA_RTISingle.h.
GA_RTISingle::GA_RTISingle | ( | const GA_IndexMap & | list | ) |
GA_RTISingle::GA_RTISingle | ( | const GA_RTISingle & | other | ) |
|
override |
|
overridevirtual |
Choose the next contiguous range. If the iteration is complete, start
should be set to a value greater than end
.
Implements GA_RangeTypeInterface.
|
overridevirtual |
Rewind the iterator (i.e. reset the iterator state). The start/offset should be initialized so that they define the first contiguous "block" for iteration. If the range is empty, start
should be greater than end
Implements GA_RangeTypeInterface.
|
protectedpure virtual |
Some iterators are not set up to perform block iteration. These methods can be used to define single iteration. The default iterateRewind() and iterateNext() methods will call these methods to collate single iterations into a block.
singleRewind()
singleGet()
singleNext()
Iteration using the single interface goes something like:
Implemented in GA_RTIElementGroup.
|
protectedpure virtual |
Some iterators are not set up to perform block iteration. These methods can be used to define single iteration. The default iterateRewind() and iterateNext() methods will call these methods to collate single iterations into a block.
singleRewind()
singleGet()
singleNext()
Iteration using the single interface goes something like:
Implemented in GA_RTIElementGroup.
|
protectedpure virtual |
Some iterators are not set up to perform block iteration. These methods can be used to define single iteration. The default iterateRewind() and iterateNext() methods will call these methods to collate single iterations into a block.
singleRewind()
singleGet()
singleNext()
Iteration using the single interface goes something like:
Implemented in GA_RTIElementGroup.