ROSE  0.11.96.11
Public Member Functions | List of all members
Sawyer::Tree::ParentEdge Class Referencefinal

Description

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 Tree.h.

#include <Tree.h>

Public Member Functions

NodePtr operator-> () const
 Obtain shared pointer.
 
Nodeoperator* () const
 Obtain pointed-to node.
 
NodePtr shared () const
 Return the parent as a shared-ownership pointer.
 
 operator bool () const
 Conversion to bool.
 
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.
 

The documentation for this class was generated from the following file: