Note
The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.
This class provides storage and data access for hierarchical classes; that is, classes where an object may have a child and a parent.
Note to developers: each subclass of Hierarchical that implements an assignment operator must call the base class assignment operator at the end of the subclass assignment operator. See the Mesh class for an example.
Constructor
Return depth of the hierarchy; that is, the total number of objects in the hierarchy linked to the current object via child-parent relationships, including the object itself.
Check if the object has a parent.
Check if the object has a child.
Return parent in hierarchy. An error is thrown if the object has no parent.
Return parent in hierarchy (const version).
Return shared pointer to parent. A zero pointer is returned if the object has no parent.
Return shared pointer to parent (const version).
Return child in hierarchy. An error is thrown if the object has no child.
Return child in hierarchy (const version).
Return shared pointer to child. A zero pointer is returned if the object has no child.
Return shared pointer to child (const version).
Return root node object in hierarchy.
Return root node object in hierarchy (const version).
Return shared pointer to root node object in hierarchy.
Return shared pointer to root node object in hierarchy (const version).
Return leaf node object in hierarchy.
Return leaf node object in hierarchy (const version).
Return shared pointer to leaf node object in hierarchy.
Return shared pointer to leaf node object in hierarchy (const version).
Set parent
Clear child
Set child
Assignment operator
Function useful for debugging the hierarchy