HDK
|
Keep track of merging of attribute maps. More...
#include <GT_AttributeMerge.h>
Public Member Functions | |
GT_AttributeMerge (const GT_AttributeMapHandle &m1, const GT_AttributeMapHandle &m2) | |
~GT_AttributeMerge () | |
const GT_AttributeMapHandle & | getMap () const |
Get the GT_AttributeMap representing the merged map. More... | |
int | getDestIndex (int source_index, int source_map) const |
Get the destination index for the source index. More... | |
Keep track of merging of attribute maps.
Attribute maps/lists can be merged to create a new attribute map. This class keeps track of which attributes fromt the two source maps get merged into the merged map.
m1
(the first map) is given priority for duplicates. That is, if an attribute exists in both m1
and m2
, only the attribute from m1
will appear in the resulting map.
Definition at line 26 of file GT_AttributeMerge.h.
GT_AttributeMerge::GT_AttributeMerge | ( | const GT_AttributeMapHandle & | m1, |
const GT_AttributeMapHandle & | m2 | ||
) |
GT_AttributeMerge::~GT_AttributeMerge | ( | ) |
Get the destination index for the source index.
|
inline |
Get the GT_AttributeMap representing the merged map.
Definition at line 33 of file GT_AttributeMerge.h.