template <class TheObjType, class TheBndType> class NCollection_UBTree
{
- public:
+public:
+ //! Memory allocation
+ DEFINE_STANDARD_ALLOC
+ DEFINE_NCOLLECTION_ALLOC
+
+public:
// ---------- PUBLIC TYPES ----------
/**
* This method should be used instead of operator delete.
*/
static void delNode (TreeNode * theNode,
- Handle(NCollection_BaseAllocator)& theAlloc)
+ const Handle(NCollection_BaseAllocator)& theAlloc)
{
if (theNode) {
if (theNode -> myChildren) {
* _HUBTREE - the desired name of handled class
* _OBJTYPE - the name of the object type
* _BNDTYPE - the name of the bounding box type
- * _HPARENT - the name of parent class (usually MMgt_TShared)
+ * _HPARENT - the name of parent class (usually Standard_Transient)
*/
#define DEFINE_HUBTREE(_HUBTREE, _OBJTYPE, _BNDTYPE, _HPARENT) \
class _HUBTREE : public _HPARENT \
\
_HUBTREE () : myTree(new UBTree) {} \
/* Empty constructor */ \
- _HUBTREE (const Handle_NCollection_BaseAllocator& theAlloc) \
+ _HUBTREE (const Handle(NCollection_BaseAllocator)& theAlloc) \
: myTree(new UBTree(theAlloc)) {} \
/* Constructor */ \
\
~_HUBTREE () { delete myTree; } \
/* Destructor */ \
\
- DEFINE_STANDARD_RTTI (_HUBTREE) \
+ DEFINE_STANDARD_RTTI_INLINE(_HUBTREE,_HPARENT) \
/* Type management */ \
\
private: \
}; \
DEFINE_STANDARD_HANDLE (_HUBTREE, _HPARENT)
-#define IMPLEMENT_HUBTREE(_HUBTREE, _HPARENT) \
-IMPLEMENT_STANDARD_HANDLE (_HUBTREE, _HPARENT) \
-IMPLEMENT_STANDARD_RTTIEXT(_HUBTREE, _HPARENT)
+#define IMPLEMENT_HUBTREE(_HUBTREE, _HPARENT)
+
+
#endif