* return
* Number of objects accepted
*/
- Standard_Integer Select (Selector& theSelector) const
+ virtual Standard_Integer Select (Selector& theSelector) const
{ return (IsEmpty() ? 0 : Select (Root(), theSelector)); }
/**
\
_HUBTREE () : myTree(new UBTree) {} \
/* Empty constructor */ \
+ _HUBTREE (const Handle_NCollection_BaseAllocator& theAlloc) \
+ : myTree(new UBTree(theAlloc)) {} \
+ /* Constructor */ \
\
/* Access to the methods of UBTree */ \
\
DEFINE_STANDARD_RTTI (_HUBTREE) \
/* Type management */ \
\
- protected: \
- _HUBTREE (UBTree *theTree) : myTree(theTree) {} \
- /* Constructor from an existing tree. */ \
+ private: \
+ /* Copying and assignment are prohibited */ \
+ _HUBTREE (UBTree*); \
+ _HUBTREE (const _HUBTREE&); \
+ void operator = (const _HUBTREE&); \
\
private: \
UBTree *myTree; /* pointer to the tree algorithm */ \