Open CASCADE Technology  6.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros
NCollection_DefineHSequence.hxx File Reference
#include <Standard_DefineHandle.hxx>
#include <NCollection_DefineSequence.hxx>
#include <MMgt_TShared.hxx>

Macros

#define DEFINE_HSEQUENCE(HClassName, _SequenceType_)
 
#define IMPLEMENT_HSEQUENCE(HClassName)
 

Macro Definition Documentation

#define DEFINE_HSEQUENCE (   HClassName,
  _SequenceType_ 
)
Value:
\
class HClassName : public _SequenceType_, \
public MMgt_TShared { \
public: \
inline HClassName (); \
inline HClassName (const _SequenceType_&); \
inline const _SequenceType_& Sequence () const; \
inline _SequenceType_& ChangeSequence (); \
DEFINE_STANDARD_RTTI (HClassName) \
}; \
\
inline HClassName::HClassName () : \
_SequenceType_(), \
MMgt_TShared() {} \
\
inline HClassName::HClassName (const _SequenceType_& anOther) : \
_SequenceType_(anOther), \
MMgt_TShared() {} \
\
inline const _SequenceType_& HClassName::Sequence () const \
{ return * (const _SequenceType_ *) this; } \
\
inline _SequenceType_& HClassName::ChangeSequence () \
{ return * (_SequenceType_ *) this; } \
The abstract class TShared is the root class of managed objects. TShared objects are managed by a...
Definition: MMgt_TShared.hxx:44
#define DEFINE_STANDARD_HANDLE(C1, C2)
Definition: Standard_DefineHandle.hxx:81
#define DEFINE_STANDARD_RTTI(C1)
Definition: Standard_DefineHandle.hxx:93
#define IMPLEMENT_HSEQUENCE (   HClassName)
Value:
The abstract class TShared is the root class of managed objects. TShared objects are managed by a...
Definition: MMgt_TShared.hxx:44
#define IMPLEMENT_STANDARD_RTTIEXT(C1, C2)
Definition: Standard_DefineHandle.hxx:127
#define IMPLEMENT_STANDARD_HANDLE(C1, C2)
Definition: Standard_DefineHandle.hxx:83