![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
#include <NCollection_UBTree.hxx>
Public Member Functions | |
| TreeNode (const TheObjType &theObj, const TheBndType &theBnd) | |
| bool | IsLeaf () const noexcept |
| bool | IsRoot () const noexcept |
| const TheBndType & | Bnd () const noexcept |
| TheBndType & | ChangeBnd () noexcept |
| const TheObjType & | Object () const noexcept |
| const TreeNode & | Child (const int i) const noexcept |
| TreeNode & | ChangeChild (const int i) noexcept |
| const TreeNode & | Parent () const noexcept |
| TreeNode & | ChangeParent () noexcept |
| void | Gemmate (const TheBndType &theNewBnd, const TheObjType &theObj, const TheBndType &theBnd, const occ::handle< NCollection_BaseAllocator > &theAlloc) |
| void | Kill (const int i, const occ::handle< NCollection_BaseAllocator > &theAlloc) |
| ~TreeNode () | |
Static Public Member Functions | |
| static void | delNode (TreeNode *theNode, const occ::handle< NCollection_BaseAllocator > &theAlloc) |
| Deleter of tree node. The whole hierarchy of its children is also deleted. This method should be used instead of operator delete. Uses iterative traversal to avoid stack overflow on deeply unbalanced trees. | |
Class describing the node of the tree. Initially the tree consists of one leaf. A node can grow to a branch holding two childs:
|
inline |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinestatic |
Deleter of tree node. The whole hierarchy of its children is also deleted. This method should be used instead of operator delete. Uses iterative traversal to avoid stack overflow on deeply unbalanced trees.
|
inline |
Forces *this node being gemmated such a way that it becomes a branch holding the previous content of *this node at the first child and theObj at the second child.
| theNewBnd | new bounding box comprizing both child nodes. |
| theObj | added object. |
| theBnd | bounding box of theObj. |
| theAlloc | allocator providing memory to the new child nodes, provided by the calling Tree instance. |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
Kills the i-th child, and *this accepts the content of another child
|
inlinenoexcept |
|
inlinenoexcept |