1 // File : Handle_SALOMEDS_PersRefAttribute.hxx
2 // Created : Thu Nov 29 21:00:10 2001
3 // Author : Yves FRICAUD
7 // Copyright : Open CASCADE 2001
10 #ifndef _Handle_SALOMEDS_PersRefAttribute_HeaderFile
11 #define _Handle_SALOMEDS_PersRefAttribute_HeaderFile
13 #ifndef _Standard_Macro_HeaderFile
14 #include <Standard_Macro.hxx>
16 #ifndef _Standard_HeaderFile
17 #include <Standard.hxx>
20 #ifndef _Handle_TDataStd_Comment_HeaderFile
21 #include <Handle_TDataStd_Comment.hxx>
24 class Standard_Transient;
25 class Handle_Standard_Type;
26 class Handle(TDataStd_Comment);
27 class SALOMEDS_PersRefAttribute;
28 Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SALOMEDS_PersRefAttribute);
30 class Handle(SALOMEDS_PersRefAttribute) : public Handle(TDataStd_Comment) {
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_PersRefAttribute)():Handle(TDataStd_Comment)() {}
49 Handle(SALOMEDS_PersRefAttribute)(const Handle(SALOMEDS_PersRefAttribute)& aHandle) : Handle(TDataStd_Comment)(aHandle)
53 Handle(SALOMEDS_PersRefAttribute)(const SALOMEDS_PersRefAttribute* anItem) : Handle(TDataStd_Comment)((TDataStd_Comment *)anItem)
57 Handle(SALOMEDS_PersRefAttribute)& operator=(const Handle(SALOMEDS_PersRefAttribute)& aHandle)
59 Assign(aHandle.Access());
63 Handle(SALOMEDS_PersRefAttribute)& operator=(const SALOMEDS_PersRefAttribute* anItem)
65 Assign((Standard_Transient *)anItem);
69 SALOMEDS_PersRefAttribute* operator->()
71 return (SALOMEDS_PersRefAttribute *)ControlAccess();
74 SALOMEDS_PersRefAttribute* operator->() const
76 return (SALOMEDS_PersRefAttribute *)ControlAccess();
79 Standard_EXPORT ~Handle(SALOMEDS_PersRefAttribute)();
81 Standard_EXPORT static const Handle(SALOMEDS_PersRefAttribute) DownCast(const Handle(Standard_Transient)& AnObject);