ROSE  0.11.125.0
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 util/Sawyer/Tree.h.

#include <util/Sawyer/Tree.h>

Public Member Functions

NodePtr operator-> () const
 Obtain shared pointer. More...
 
Nodeoperator* () 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.
 

Member Function Documentation

NodePtr Sawyer::Tree::ParentEdge::operator-> ( ) const
inline

Obtain shared pointer.

Definition at line 277 of file util/Sawyer/Tree.h.

References shared().

Node& Sawyer::Tree::ParentEdge::operator* ( ) const
inline

Obtain pointed-to node.

Definition at line 282 of file util/Sawyer/Tree.h.

References shared().

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->().

Sawyer::Tree::ParentEdge::operator bool ( ) const
inlineexplicit

Conversion to bool.

Definition at line 291 of file util/Sawyer/Tree.h.


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