HDK
|
#include <GA_IndexMap.h>
Public Member Functions | |
AttributeCompare (const GA_Attribute *attribute, int tuple_index=0) | |
AttributeCompare (const GA_IndexMap &map, const char *attribute_name, int tuple_index=0) | |
Construct given an index map and an attribute name. More... | |
~AttributeCompare () override | |
Destructor. More... | |
bool | initialize (const GA_IndexMap &map) override |
int | compare (const GA_IndexMap &map, GA_Offset item1, GA_Offset item2) override |
void | finish (const GA_IndexMap &map) override |
Public Member Functions inherited from GA_IndexMap::IndexCompare | |
IndexCompare () | |
virtual | ~IndexCompare () |
Protected Member Functions | |
const GA_Attribute * | getAttribute () const |
const GA_AIFTuple * | getAIFTuple () const |
const GA_AIFStringTuple * | getAIFStringTuple () const |
int | getTupleIndex () const |
bool | getIsFloat () const |
Convenience class which can be used to sort an index map based on an attribute value. The attribute should either provide an AIFTuple or AIFStringTuple interface. If neither interfaces are provided, this class won't do any sorting. Example:
Definition at line 375 of file GA_IndexMap.h.
GA_IndexMap::AttributeCompare::AttributeCompare | ( | const GA_Attribute * | attribute, |
int | tuple_index = 0 |
||
) |
Sort the index map based on the values in the attribute. For tuple attributes, compare the value for the given index.
GA_IndexMap::AttributeCompare::AttributeCompare | ( | const GA_IndexMap & | map, |
const char * | attribute_name, | ||
int | tuple_index = 0 |
||
) |
Construct given an index map and an attribute name.
|
override |
Destructor.
|
overridevirtual |
Methods defined on IndexCompare
Implements GA_IndexMap::IndexCompare.
|
overridevirtual |
Methods defined on IndexCompare
Implements GA_IndexMap::IndexCompare.
|
inlineprotected |
Definition at line 401 of file GA_IndexMap.h.
|
inlineprotected |
Definition at line 399 of file GA_IndexMap.h.
|
inlineprotected |
Definition at line 397 of file GA_IndexMap.h.
|
inlineprotected |
Definition at line 405 of file GA_IndexMap.h.
|
inlineprotected |
Definition at line 403 of file GA_IndexMap.h.
|
overridevirtual |
Methods defined on IndexCompare
Implements GA_IndexMap::IndexCompare.