ROSE
0.11.125.0
|
Edge pointing from child to parent.
This is a special pointer type that allows a child node to point to a parent node. Each tree Node has a parent
pointer of this type. The value of the pointer is updated automatically when the node is inserted into or removed from a tree.
Definition at line 268 of file util/Sawyer/Tree.h.
#include <util/Sawyer/Tree.h>
Public Member Functions | |
NodePtr | operator-> () const |
Obtain shared pointer. More... | |
Node & | operator* () const |
Obtain pointed-to node. More... | |
NodePtr | shared () const |
Return the parent as a shared-ownership pointer. More... | |
operator bool () const | |
Conversion to bool. More... | |
bool | operator== (const ParentEdge &other) const |
Relation. | |
bool | operator!= (const ParentEdge &other) const |
Relation. | |
bool | operator< (const ParentEdge &other) const |
Relation. | |
bool | operator<= (const ParentEdge &other) const |
Relation. | |
bool | operator> (const ParentEdge &other) const |
Relation. | |
bool | operator>= (const ParentEdge &other) const |
Relation. | |
|
inline |
|
inline |
NodePtr Sawyer::Tree::ParentEdge::shared | ( | ) | const |
Return the parent as a shared-ownership pointer.
Definition at line 953 of file util/Sawyer/Tree.h.
Referenced by operator*(), and operator->().
|
inlineexplicit |
Conversion to bool.
Definition at line 291 of file util/Sawyer/Tree.h.