1 // File : Handle_SALOMEDS_OpenedAttribute.hxx
2 // Created : Tue Jul 09 16:42:38 2002
3 // Author : Yves FRICAUD
7 // Copyright : Open CASCADE 2002
10 #ifndef _Handle_SALOMEDS_OpenedAttribute_HeaderFile
11 #define _Handle_SALOMEDS_OpenedAttribute_HeaderFile
13 #ifndef _Standard_Macro_HeaderFile
14 #include <Standard_Macro.hxx>
16 #ifndef _Standard_HeaderFile
17 #include <Standard.hxx>
20 #ifndef _Handle_TDataStd_Integer_HeaderFile
21 #include <Handle_TDataStd_Integer.hxx>
24 class Standard_Transient;
25 class Handle_Standard_Type;
26 class Handle(TDataStd_Integer);
27 class SALOMEDS_OpenedAttribute;
28 Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SALOMEDS_OpenedAttribute);
30 class Handle(SALOMEDS_OpenedAttribute) : public Handle(TDataStd_Integer) {
32 inline void* operator new(size_t,void* anAddress)
36 inline void* operator new(size_t size)
38 return Standard::Allocate(size);
40 inline void operator delete(void *anAddress)
42 if (anAddress) Standard::Free((Standard_Address&)anAddress);
44 // inline void operator delete(void *anAddress, size_t size)
46 // if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
48 Handle(SALOMEDS_OpenedAttribute)():Handle(TDataStd_Integer)() {}
49 Handle(SALOMEDS_OpenedAttribute)(const Handle(SALOMEDS_OpenedAttribute)& aHandle) : Handle(TDataStd_Integer)(aHandle)
53 Handle(SALOMEDS_OpenedAttribute)(const SALOMEDS_OpenedAttribute* anItem) : Handle(TDataStd_Integer)((TDataStd_Integer *)anItem)
57 Handle(SALOMEDS_OpenedAttribute)& operator=(const Handle(SALOMEDS_OpenedAttribute)& aHandle)
59 Assign(aHandle.Access());
63 Handle(SALOMEDS_OpenedAttribute)& operator=(const SALOMEDS_OpenedAttribute* anItem)
65 Assign((Standard_Transient *)anItem);
69 SALOMEDS_OpenedAttribute* operator->()
71 return (SALOMEDS_OpenedAttribute *)ControlAccess();
74 SALOMEDS_OpenedAttribute* operator->() const
76 return (SALOMEDS_OpenedAttribute *)ControlAccess();
79 Standard_EXPORT ~Handle(SALOMEDS_OpenedAttribute)();
81 Standard_EXPORT static const Handle(SALOMEDS_OpenedAttribute) DownCast(const Handle(Standard_Transient)& AnObject);