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


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 <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
bool operator!= (const ParentEdge &other) const
bool operator< (const ParentEdge &other) const
bool operator<= (const ParentEdge &other) const
bool operator> (const ParentEdge &other) const
bool operator>= (const ParentEdge &other) const

Member Function Documentation

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

Obtain shared pointer.

Definition at line 277 of file Tree.h.

References shared().

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

Obtain pointed-to node.

Definition at line 282 of file Tree.h.

References shared().

NodePtr Sawyer::Tree::ParentEdge::shared ( ) const

Return the parent as a shared-ownership pointer.

Definition at line 953 of file Tree.h.

Referenced by operator*(), and operator->().

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

Conversion to bool.

Definition at line 291 of file Tree.h.

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