Open CASCADE Technology  7.2.0
Macros

NCollection_DefineHArray1.hxx File Reference

#include <Standard_Type.hxx>
#include <NCollection_DefineArray1.hxx>
#include <Standard_Transient.hxx>

Macros

#define DEFINE_HARRAY1(HClassName, _Array1Type_)
 
#define IMPLEMENT_HARRAY1(HClassName)
 

Macro Definition Documentation

◆ DEFINE_HARRAY1

#define DEFINE_HARRAY1 (   HClassName,
  _Array1Type_ 
)
Value:
class HClassName : public _Array1Type_, public Standard_Transient { \
public: \
DEFINE_STANDARD_ALLOC \
DEFINE_NCOLLECTION_ALLOC \
HClassName (const Standard_Integer theLower, \
const Standard_Integer theUpper) : \
_Array1Type_ (theLower,theUpper) {} \
HClassName (const Standard_Integer theLower, \
const Standard_Integer theUpper, \
const _Array1Type_::value_type& theValue) : \
_Array1Type_ (theLower,theUpper) { Init (theValue); } \
HClassName (const _Array1Type_& theOther) : _Array1Type_(theOther) {} \
const _Array1Type_& Array1 () const { return *this; } \
_Array1Type_& ChangeArray1 () { return *this; } \
DEFINE_STANDARD_RTTI_INLINE(HClassName,Standard_Transient) \
}; \
DEFINE_STANDARD_HANDLE (HClassName, Standard_Transient)
int Standard_Integer
Definition: Standard_TypeDef.hxx:54
Abstract class which forms the root of the entire Transient class hierarchy.
Definition: Standard_Transient.hxx:31

◆ IMPLEMENT_HARRAY1

#define IMPLEMENT_HARRAY1 (   HClassName)