HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GT_AttributeMerge Class Reference

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_AttributeMapHandlegetMap () 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...
 

Detailed Description

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.

Constructor & Destructor Documentation

GT_AttributeMerge::GT_AttributeMerge ( const GT_AttributeMapHandle m1,
const GT_AttributeMapHandle m2 
)
GT_AttributeMerge::~GT_AttributeMerge ( )

Member Function Documentation

int GT_AttributeMerge::getDestIndex ( int  source_index,
int  source_map 
) const

Get the destination index for the source index.

const GT_AttributeMapHandle& GT_AttributeMerge::getMap ( ) const
inline

Get the GT_AttributeMap representing the merged map.

Definition at line 33 of file GT_AttributeMerge.h.


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