NCollection_UBTree< TheObjType, TheBndType >::TreeNode Class Reference
#include <NCollection_UBTree.hxx>
Detailed Description
template<class TheObjType, class TheBndType>
class NCollection_UBTree< TheObjType, TheBndType >::TreeNode
Class describing the node of the tree. Initially the tree consists of one leaf. A node can grow to a branch holding two childs:
- one correspondent to initial node
- the new one with a new object and bounding box
Constructor & Destructor Documentation
template<class TheObjType , class TheBndType >
| NCollection_UBTree< TheObjType, TheBndType >::TreeNode::TreeNode |
( |
const TheObjType & |
theObj, |
|
|
const TheBndType & |
theBnd | |
|
) |
| | [inline] |
template<class TheObjType , class TheBndType >
Member Function Documentation
template<class TheObjType , class TheBndType >
| const TheBndType& NCollection_UBTree< TheObjType, TheBndType >::TreeNode::Bnd |
( |
|
) |
const [inline] |
template<class TheObjType , class TheBndType >
| TheBndType& NCollection_UBTree< TheObjType, TheBndType >::TreeNode::ChangeBnd |
( |
|
) |
[inline] |
template<class TheObjType , class TheBndType >
template<class TheObjType , class TheBndType >
template<class TheObjType , class TheBndType >
template<class TheObjType , class TheBndType >
Deleter of tree node. The whole hierarchy of its children also deleted. This method should be used instead of operator delete.
template<class TheObjType , class TheBndType >
| void NCollection_UBTree< TheObjType, TheBndType >::TreeNode::Gemmate |
( |
const TheBndType & |
theNewBnd, |
|
|
const TheObjType & |
theObj, |
|
|
const TheBndType & |
theBnd, |
|
|
const Handle< NCollection_BaseAllocator > & |
theAlloc | |
|
) |
| | [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.
- Parameters:
-
| TheNewBnd | new bounding box comprizing both child nodes. |
| theObj | added object. |
| theBnd | bounding box of theObj. allocator providing memory to the new child nodes, provided by the calling Tree instance. |
template<class TheObjType , class TheBndType >
template<class TheObjType , class TheBndType >
template<class TheObjType , class TheBndType >
Kills the i-th child, and *this accepts the content of another child
template<class TheObjType , class TheBndType >
| const TheObjType& NCollection_UBTree< TheObjType, TheBndType >::TreeNode::Object |
( |
|
) |
const [inline] |
template<class TheObjType , class TheBndType >
| void* NCollection_UBTree< TheObjType, TheBndType >::TreeNode::operator new |
( |
size_t |
, |
|
|
void * |
theMem | |
|
) |
| | [inline] |
Allocator of a tree node.
template<class TheObjType , class TheBndType >
Allocator of a tree node.
template<class TheObjType , class TheBndType >
The documentation for this class was generated from the following file: