#include <customgui_itemtree_utils.h>
Identifies a node in an item tree's flattened index table.
Stores the node's traversal index, stable GUID, opaque node pointer, and associated payload pointer. The records can be sorted by GUID for stable lookup.
ITEMTREE_NODEDATA_FLAG flags is optional. You can also define and use your own flags. Public Member Functions | |
| ItemTreeNodeIndex () | |
| ItemTreeNodeIndex (UInt64 guid) | |
| Bool | operator< (const ItemTreeNodeIndex &dst) const |
| Bool | operator> (const ItemTreeNodeIndex &dst) const |
| Bool | operator<= (const ItemTreeNodeIndex &dst) const |
| Bool | operator>= (const ItemTreeNodeIndex &dst) const |
| Bool | operator== (const ItemTreeNodeIndex &dst) const |
Public Attributes | |
| Int32 | m_Index |
| UInt64 | m_GUID |
| ItemTreeNode * | node |
| ItemTreeNodeData * | data |
Initializes an empty index record.
|
explicit |
Initializes an index record with a node GUID.
| [in] | guid | Node GUID. |
| Bool operator< | ( | const ItemTreeNodeIndex & | dst | ) | const |
Compares two records by GUID.
| [in] | dst | Record to compare with this record. |
true if this record's GUID is less than dst's GUID. | Bool operator> | ( | const ItemTreeNodeIndex & | dst | ) | const |
Compares two records by GUID.
| [in] | dst | Record to compare with this record. |
true if this record's GUID is greater than dst's GUID. | Bool operator<= | ( | const ItemTreeNodeIndex & | dst | ) | const |
Compares two records by GUID.
| [in] | dst | Record to compare with this record. |
true if this record's GUID is less than or equal to dst's GUID. | Bool operator>= | ( | const ItemTreeNodeIndex & | dst | ) | const |
Compares two records by GUID.
| [in] | dst | Record to compare with this record. |
true if this record's GUID is greater than or equal to dst's GUID. | Bool operator== | ( | const ItemTreeNodeIndex & | dst | ) | const |
Compares two records by GUID.
| [in] | dst | Record to compare with this record. |
true if both records have the same GUID. | Int32 m_Index |
Zero-based traversal index of the node.
| UInt64 m_GUID |
Stable identifier of the node.
| ItemTreeNode* node |
Opaque pointer to the represented node.
| ItemTreeNodeData* data |
Pointer to the node payload.