![]() | InDesign SDK 20.5 |
#include <EntryNode.h>
Public Member Functions | |
| EntryNode () | |
| EntryNode (const T &data) | |
| EntryNode (const T &data, int32 level, EntryNode< T > *child, EntryNode< T > *sibling, EntryNode< T > *previous, bool16 isParent) | |
| virtual | ~EntryNode () |
| virtual const T & | GetData () |
| virtual void | SetData (const T &data) |
| virtual int32 | GetNodeLevel () |
| virtual void | SetNodeLevel (int32 level) |
| virtual EntryNode< T > * | GetChild () |
| virtual void | SetChild (EntryNode< T > *child) |
| virtual EntryNode< T > * | GetSibling () |
| virtual void | SetSibling (EntryNode< T > *sibling) |
| virtual EntryNode< T > * | GetPrevious () |
| virtual void | SetPrevious (EntryNode< T > *previous) |
| virtual bool16 | IsPreviousParent () |
| virtual void | SetPreviousIsParent (bool16 isParent) |
Templatized helper class allowing an arbitrary number of children in the tree. This is using a linked list data structure representing a binary tree. All the nodes in each linked list are on the same level. Each child node starts a new level. Each node in the tree could have a parent, a child, a next sibling and a previous sibling. The first child of a node may not have a previous sibling. This structure is used to support multi level sorting for table of content.
Copy constructor with given data information.
| data | IN object copy from. |
| inline |
Copy constructor with given data and its corresponding information.
| data | IN data copy from. |
| level | IN level where the node will be |
| child | IN node's child |
| sibling | IN node's sibling |
| previous | IN node's previous sibling |
| isParent | IN node's is a parent or not |
Get the child node of this node.
| none |
| inlinevirtual |
Get the data of the node.
| none |
| inlinevirtual |
Get the level of the node.
| none |
Get the previous node of this node.
| none |
Get the next sibling node of this node.
| none |
| inlinevirtual |
Get the flag about if the node is parent or not. A node is a parent if it has child node.
| none |
Set the child node of this node.
| child | IN the child node to be set for this node. |
| inlinevirtual |
Set the data of the node
| data | the data to be set in the node. |
| inlinevirtual |
Set the level of the node.
| level | IN the level to be set for the node. |
Set the previous node of this node.
| previous | IN the previous node to be set for this node. |
| inlinevirtual |
Set the flag about it is a parent node or not.
| isParent | IN the flag indicates it is a parent node or not. |