1 // File : Handle_SALOMEDS_TableOfRealAttribute.hxx
2 // Created : Tue Oct 8 10:13:30 2002
3 // Author : Michael Ponikarov
6 // Copyright : Open CASCADE
9 #ifndef _Handle_SALOMEDS_TableOfRealAttribute_HeaderFile
10 #define _Handle_SALOMEDS_TableOfRealAttribute_HeaderFile
12 #ifndef _Standard_Macro_HeaderFile
13 #include <Standard_Macro.hxx>
15 #ifndef _Standard_HeaderFile
16 #include <Standard.hxx>
19 #ifndef _Handle_TDF_Attribute_HeaderFile
20 #include <Handle_TDF_Attribute.hxx>
23 class Standard_Transient;
24 class Handle_Standard_Type;
25 class Handle(TDF_Attribute);
26 class SALOMEDS_TableOfRealAttribute;
27 Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SALOMEDS_TableOfRealAttribute);
29 class Handle(SALOMEDS_TableOfRealAttribute) : public Handle(TDF_Attribute) {
31 inline void* operator new(size_t,void* anAddress)
35 inline void* operator new(size_t size)
37 return Standard::Allocate(size);
39 inline void operator delete(void *anAddress)
41 if (anAddress) Standard::Free((Standard_Address&)anAddress);
43 // inline void operator delete(void *anAddress, size_t size)
45 // if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
47 Handle(SALOMEDS_TableOfRealAttribute)():Handle(TDF_Attribute)() {}
48 Handle(SALOMEDS_TableOfRealAttribute)(const Handle(SALOMEDS_TableOfRealAttribute)& aHandle) : Handle(TDF_Attribute)(aHandle)
52 Handle(SALOMEDS_TableOfRealAttribute)(const SALOMEDS_TableOfRealAttribute* anItem) : Handle(TDF_Attribute)((TDF_Attribute *)anItem)
56 Handle(SALOMEDS_TableOfRealAttribute)& operator=(const Handle(SALOMEDS_TableOfRealAttribute)& aHandle)
58 Assign(aHandle.Access());
62 Handle(SALOMEDS_TableOfRealAttribute)& operator=(const SALOMEDS_TableOfRealAttribute* anItem)
64 Assign((Standard_Transient *)anItem);
68 SALOMEDS_TableOfRealAttribute* operator->()
70 return (SALOMEDS_TableOfRealAttribute *)ControlAccess();
73 SALOMEDS_TableOfRealAttribute* operator->() const
75 return (SALOMEDS_TableOfRealAttribute *)ControlAccess();
78 Standard_EXPORT ~Handle(SALOMEDS_TableOfRealAttribute)();
80 Standard_EXPORT static const Handle(SALOMEDS_TableOfRealAttribute) DownCast(const Handle(Standard_Transient)& AnObject);