HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GA_AIFEditDeltaMap Class Referenceabstract

Class for mapping between an index and an attribute data offset. More...

#include <GA_AIFEdit.h>

+ Inheritance diagram for GA_AIFEditDeltaMap:

Public Member Functions

virtual ~GA_AIFEditDeltaMap ()
 
virtual GA_Offset getDataOffset (GA_Index delta_index) const =0
 
virtual GA_Index getDeltaIndex (GA_Offset data_offset) const =0
 

Detailed Description

Class for mapping between an index and an attribute data offset.

GA_AIFEditDelta objects store element deltas by an ordered index, not necessarily corresponding to the element's order in an GA_IndexMap. This class maps between that index and the corresponding data offset in a particular attribute.

The simplest map is to use the ordered index from a GA_IndexMap as the delta index. TODO: Add a virtual getDeltaIndexTraverser which yields data offsets in delta index order. This may be more efficient for GA_AIFEditDelta::apply

Definition at line 48 of file GA_AIFEdit.h.

Constructor & Destructor Documentation

virtual GA_AIFEditDeltaMap::~GA_AIFEditDeltaMap ( )
inlinevirtual

Definition at line 51 of file GA_AIFEdit.h.

Member Function Documentation

virtual GA_Offset GA_AIFEditDeltaMap::getDataOffset ( GA_Index  delta_index) const
pure virtual

Implemented in GA_AIFEditDeltaIndexMap.

virtual GA_Index GA_AIFEditDeltaMap::getDeltaIndex ( GA_Offset  data_offset) const
pure virtual

Implemented in GA_AIFEditDeltaIndexMap.


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