Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Defines
NCollection_DefineHSet.hxx File Reference
#include <Standard_DefineHandle.hxx>
#include <NCollection_DefineSet.hxx>
#include <MMgt_TShared.hxx>

Defines

#define DEFINE_HSET(HClassName, _SetType_)
#define IMPLEMENT_HSET(HClassName)

Define Documentation

#define DEFINE_HSET (   HClassName,
  _SetType_ 
)
Value:
\
class HClassName : public _SetType_,                                           \
                   public MMgt_TShared {                                       \
 public:                                                                       \
   inline                  HClassName ();                                      \
   inline                  HClassName (const _SetType_& anOther);              \
   inline const _SetType_& Set        () const;                                \
   inline _SetType_&       ChangeSet  ();                                      \
   DEFINE_STANDARD_RTTI (HClassName)                                           \
};                                                                             \
                                                                               \
DEFINE_STANDARD_HANDLE (HClassName, MMgt_TShared)                              \
                                                                               \
inline HClassName::HClassName () :                                             \
       _SetType_(),                                                            \
       MMgt_TShared() {}                                                       \
                                                                               \
inline HClassName::HClassName (const _SetType_& anOther) :                     \
       _SetType_(anOther),                                                     \
       MMgt_TShared() {}                                                       \
                                                                               \
inline const _SetType_& HClassName::Set () const                               \
{ return * (const _SetType_ *) this; }                                         \
                                                                               \
inline _SetType_& HClassName::ChangeSet ()                                     \
{ return * (_SetType_ *) this; }                                               \
#define IMPLEMENT_HSET (   HClassName)
Value:
IMPLEMENT_STANDARD_HANDLE  (HClassName, MMgt_TShared)                          \
IMPLEMENT_STANDARD_RTTIEXT (HClassName, MMgt_TShared)