#include <NCollection_UBTreeFiller.hxx>
Public Types | |
| typedef NCollection_UBTree< TheObjType, TheBndType > | UBTree |
| UBTree algorithm. | |
| typedef TYPENAME UBTree::TreeNode | UBTreeNode |
Public Member Functions | |
| NCollection_UBTreeFiller (UBTree &theTree, const Standard_Boolean isFullRandom=Standard_True) | |
| void | Add (const TheObjType &theObj, const TheBndType &theBnd) |
| Adds a pair (theObj, theBnd) to my sequence. | |
| Standard_EXPORT Standard_Integer | Fill () |
| Standard_EXPORT Standard_Integer | CheckTree (Standard_OStream &theStream) |
| ~NCollection_UBTreeFiller () | |
Static Private Member Functions | |
| static Standard_Real | checkNode (const UBTreeNode &theNode, const Standard_Integer theLength, Standard_Integer &theNumber) |
Private Attributes | |
| UBTree & | myTree |
| NCollection_Vector< ObjBnd > | mySeqPtr |
| int | mySeed |
| seed for rand | |
| Standard_Boolean | myIsFullRandom |
Data Structures | |
| struct | ObjBnd |
| Structure of pair (object, bnd box). More... | |
This class collects objects to be added, and then add them to the tree in a random order.
|
|||||
|
|
|
|||||
|
|
|
||||||||||||||||
|
Constructor.
|
|
|||||||||
|
Destructor. Fills the tree with accumulated items if they have not been passed by a previous call of method Fill(). |
|
||||||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
||||||||||
|
Check the filled tree for the total number of items and the balance outputting these results to ostream.
|
|
|||||||||
|
Fills the tree with the objects from my sequence. This method clears the internal buffer of added items making sure that no item would be added twice.
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
1.4.1