1 // SALOME SALOMEDS : data structure of SALOME and sources of Salome data server
3 // Copyright (C) 2003 CEA/DEN, EDF R&D
7 // File : Handle_SALOMEDS_TableOfIntegerAttribute.hxx
8 // Author : Michael Ponikarov
12 #ifndef _Handle_SALOMEDS_TableOfIntegerAttribute_HeaderFile
13 #define _Handle_SALOMEDS_TableOfIntegerAttribute_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_TableOfIntegerAttribute;
30 Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SALOMEDS_TableOfIntegerAttribute);
32 class Handle(SALOMEDS_TableOfIntegerAttribute) : 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_TableOfIntegerAttribute)():Handle(TDF_Attribute)() {}
51 Handle(SALOMEDS_TableOfIntegerAttribute)(const Handle(SALOMEDS_TableOfIntegerAttribute)& aHandle) : Handle(TDF_Attribute)(aHandle)
55 Handle(SALOMEDS_TableOfIntegerAttribute)(const SALOMEDS_TableOfIntegerAttribute* anItem) : Handle(TDF_Attribute)((TDF_Attribute *)anItem)
59 Handle(SALOMEDS_TableOfIntegerAttribute)& operator=(const Handle(SALOMEDS_TableOfIntegerAttribute)& aHandle)
61 Assign(aHandle.Access());
65 Handle(SALOMEDS_TableOfIntegerAttribute)& operator=(const SALOMEDS_TableOfIntegerAttribute* anItem)
67 Assign((Standard_Transient *)anItem);
71 SALOMEDS_TableOfIntegerAttribute* operator->()
73 return (SALOMEDS_TableOfIntegerAttribute *)ControlAccess();
76 SALOMEDS_TableOfIntegerAttribute* operator->() const
78 return (SALOMEDS_TableOfIntegerAttribute *)ControlAccess();
81 Standard_EXPORT ~Handle(SALOMEDS_TableOfIntegerAttribute)();
83 Standard_EXPORT static const Handle(SALOMEDS_TableOfIntegerAttribute) DownCast(const Handle(Standard_Transient)& AnObject);