HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GA_IndexMap::Marker Class Reference

#include <GA_IndexMap.h>

Public Member Functions

 Marker (const GA_IndexMap &indexmap)
 
GA_Range getRange () const
 
GA_Offset getBegin () const
 Returns the lower-bound on the beginning of the range. More...
 
GA_Offset getEnd () const
 Returns the upper-bound on the end of the range. More...
 

Detailed Description

This is a helpful class for getting the range of elements created after such a Marker is declared. For example,

GA_IndexMap::Marker marker(gdp->getPointMap()); ... // Some code that creates points for (GA_Iterator it(marker.getRange()); !it.atEnd(); ++it) ... // Do something to each created point

NOTE: The code doing the creating can't delete elements from the index map before adding any new elements.

Examples:
SOP/SOP_HDKObject.C.

Definition at line 210 of file GA_IndexMap.h.

Constructor & Destructor Documentation

GA_IndexMap::Marker::Marker ( const GA_IndexMap indexmap)
inline

Definition at line 213 of file GA_IndexMap.h.

Member Function Documentation

GA_Offset GA_IndexMap::Marker::getBegin ( ) const
inline

Returns the lower-bound on the beginning of the range.

Definition at line 228 of file GA_IndexMap.h.

GA_Offset GA_IndexMap::Marker::getEnd ( ) const
inline

Returns the upper-bound on the end of the range.

Definition at line 230 of file GA_IndexMap.h.

GA_Range GA_IndexMap::Marker::getRange ( ) const
inline

Returns a GA_Range of (non-temporary) elements added after the creation of this Marker, so long as no elements that were already in the GA_IndexMap were deleted before adding any new elements. All non-temporary elements between getBegin() and getEnd() are in the range.

Definition at line 224 of file GA_IndexMap.h.


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