![]() | InDesign SDK 20.5 |
#include <PnlTrvDataNode.h>
Public Types | |
| typedef object_type | data_type |
Public Member Functions | |
| PnlTrvDataNode () | |
| virtual | ~PnlTrvDataNode () |
| PnlTrvDataNode (const PnlTrvDataNode &rhs) | |
| PnlTrvDataNode & | operator= (const PnlTrvDataNode &rhs) |
| bool | operator== (const PnlTrvDataNode &rhs) const |
| const PnlTrvDataNode & | GetNthChild (int32 indexInParent) const |
| PnlTrvDataNode * | GetParent () const |
| int32 | ChildCount () const |
| PMString | GetData () const |
| void | AddChild (const PnlTrvDataNode &o) |
| void | RemoveChild (const PnlTrvDataNode &o) |
| void | SetParent (const PnlTrvDataNode *p) |
| void | SetData (const PMString &data) |
Class to represent a generic node within a tree, with data that is encapsulated in a PMString.
| typedef object_type PnlTrvDataNode::data_type |
For K2Vector copy semantics
| virtual |
Destructor
| PnlTrvDataNode::PnlTrvDataNode | ( | const PnlTrvDataNode & | rhs | ) |
Copy constructor
| rhs | [IN] node reference |
| void PnlTrvDataNode::AddChild | ( | const PnlTrvDataNode & | o | ) |
Add child to this node (at end of list)
| o | [IN] child node to add |
| int32 PnlTrvDataNode::ChildCount | ( | ) | const |
Accessor for size of child list on this node
| PMString PnlTrvDataNode::GetData | ( | ) | const |
Get the data associated with this node (path or whatever)
| const PnlTrvDataNode & PnlTrvDataNode::GetNthChild | ( | int32 | indexInParent | ) | const |
Accessor for child by zerobased index in parent's list of kids
| indexInParent | [IN] which child by zero-based index |
| PnlTrvDataNode * PnlTrvDataNode::GetParent | ( | ) | const |
Accessor for parent
| PnlTrvDataNode & PnlTrvDataNode::operator= | ( | const PnlTrvDataNode & | rhs | ) |
| bool PnlTrvDataNode::operator== | ( | const PnlTrvDataNode & | rhs | ) | const |
Operator equality
| rhs | [IN] node reference |
| void PnlTrvDataNode::RemoveChild | ( | const PnlTrvDataNode & | o | ) |
Remove specified child from our list
| o | [IN] specifies child to remove |
| void PnlTrvDataNode::SetData | ( | const PMString & | data | ) |
Mutator for data stored on this
| data | [IN] specifies the new data to store |
| void PnlTrvDataNode::SetParent | ( | const PnlTrvDataNode * | p | ) |
Mutator for the parent of this node
| p | [IN] specifies new parent to set |