Open CASCADE Technology  7.3.0
Data Structures | Macros

NCollection_EBTree.hxx File Reference

#include <NCollection_UBTree.hxx>
#include <Standard_Type.hxx>
#include <Standard_Transient.hxx>
#include <NCollection_List.hxx>
#include <TColStd_SequenceOfInteger.hxx>
#include <NCollection_DataMap.hxx>

Data Structures

class  NCollection_EBTree< TheObjType, TheBndType >
 

Macros

#define DEFINE_HEBTREE(_HEBTREE, _OBJTYPE, _BNDTYPE, _HUBTREE)
 
#define IMPLEMENT_HEBTREE(_HEBTREE, _HUBTREE)
 

Macro Definition Documentation

◆ DEFINE_HEBTREE

#define DEFINE_HEBTREE (   _HEBTREE,
  _OBJTYPE,
  _BNDTYPE,
  _HUBTREE 
)
Value:
class _HEBTREE : public _HUBTREE \
{ \
public: \
\
_HEBTREE () : _HUBTREE(new EBTree) {} \
/* Empty constructor */ \
\
/* Access to the methods of EBTree */ \
\
Standard_Boolean Remove (const _OBJTYPE& theObj) \
{ return ChangeETree().Remove (theObj); } \
\
Standard_Boolean Contains (const _OBJTYPE& theObj) const \
{ return ETree().Contains (theObj); } \
\
const UBTree::TreeNode& FindNode (const _OBJTYPE& theObj) const \
{ return ETree().FindNode (theObj); } \
\
/* Access to the extended tree algorithm */ \
\
const EBTree& ETree () const { return (const EBTree&) Tree(); } \
EBTree& ChangeETree () { return (EBTree&) ChangeTree(); } \
DEFINE_STANDARD_RTTI_INLINE(_HEBTREE,_HUBTREE) \
/* Type management */ \
}; \
DEFINE_STANDARD_HANDLE (_HEBTREE, _HUBTREE)
Definition: NCollection_EBTree.hxx:36
Definition: NCollection_UBTree.hxx:63
#define DEFINE_STANDARD_RTTI_INLINE(Class, Base)
Helper macro to be included in definition of the classes inheriting Standard_Transient to enable use ...
Definition: Standard_Type.hxx:97

◆ IMPLEMENT_HEBTREE

#define IMPLEMENT_HEBTREE (   _HEBTREE,
  _HUBTREE 
)