1 // SALOME SALOMEDS : data structure of SALOME and sources of Salome data server
3 // Copyright (C) 2003 CEA/DEN, EDF R&D
5 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
7 // File : Handle_SALOMEDS_TableOfRealAttribute.hxx
8 // Author : Michael Ponikarov
12 #ifndef _Handle_SALOMEDS_TableOfRealAttribute_HeaderFile
13 #define _Handle_SALOMEDS_TableOfRealAttribute_HeaderFile
15 #ifndef _Standard_Macro_HeaderFile
16 #include <Standard_Macro.hxx>
18 #ifndef _Standard_HeaderFile
19 #include <Standard.hxx>
22 #ifndef _Handle_TDF_Attribute_HeaderFile
23 #include <Handle_TDF_Attribute.hxx>
26 class Standard_Transient;
27 class Handle_Standard_Type;
28 class Handle(TDF_Attribute);
29 class SALOMEDS_TableOfRealAttribute;
30 Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SALOMEDS_TableOfRealAttribute);
32 class Handle(SALOMEDS_TableOfRealAttribute) : public Handle(TDF_Attribute) {
34 inline void* operator new(size_t,void* anAddress)
38 inline void* operator new(size_t size)
40 return Standard::Allocate(size);
42 inline void operator delete(void *anAddress)
44 if (anAddress) Standard::Free((Standard_Address&)anAddress);
46 // inline void operator delete(void *anAddress, size_t size)
48 // if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
50 Handle(SALOMEDS_TableOfRealAttribute)():Handle(TDF_Attribute)() {}
51 Handle(SALOMEDS_TableOfRealAttribute)(const Handle(SALOMEDS_TableOfRealAttribute)& aHandle) : Handle(TDF_Attribute)(aHandle)
55 Handle(SALOMEDS_TableOfRealAttribute)(const SALOMEDS_TableOfRealAttribute* anItem) : Handle(TDF_Attribute)((TDF_Attribute *)anItem)
59 Handle(SALOMEDS_TableOfRealAttribute)& operator=(const Handle(SALOMEDS_TableOfRealAttribute)& aHandle)
61 Assign(aHandle.Access());
65 Handle(SALOMEDS_TableOfRealAttribute)& operator=(const SALOMEDS_TableOfRealAttribute* anItem)
67 Assign((Standard_Transient *)anItem);
71 SALOMEDS_TableOfRealAttribute* operator->()
73 return (SALOMEDS_TableOfRealAttribute *)ControlAccess();
76 SALOMEDS_TableOfRealAttribute* operator->() const
78 return (SALOMEDS_TableOfRealAttribute *)ControlAccess();
81 Standard_EXPORT ~Handle(SALOMEDS_TableOfRealAttribute)();
83 Standard_EXPORT static const Handle(SALOMEDS_TableOfRealAttribute) DownCast(const Handle(Standard_Transient)& AnObject);