1 // File : Handle_SALOMEDS_TableOfIntegerAttribute.hxx
2 // Created : Tue Oct 8 10:13:30 2002
3 // Author : Michael Ponikarov
6 // Copyright : Open CASCADE
9 #ifndef _Handle_SALOMEDS_TableOfIntegerAttribute_HeaderFile
10 #define _Handle_SALOMEDS_TableOfIntegerAttribute_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_TableOfIntegerAttribute;
27 Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SALOMEDS_TableOfIntegerAttribute);
29 class Handle(SALOMEDS_TableOfIntegerAttribute) : 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_TableOfIntegerAttribute)():Handle(TDF_Attribute)() {}
48 Handle(SALOMEDS_TableOfIntegerAttribute)(const Handle(SALOMEDS_TableOfIntegerAttribute)& aHandle) : Handle(TDF_Attribute)(aHandle)
52 Handle(SALOMEDS_TableOfIntegerAttribute)(const SALOMEDS_TableOfIntegerAttribute* anItem) : Handle(TDF_Attribute)((TDF_Attribute *)anItem)
56 Handle(SALOMEDS_TableOfIntegerAttribute)& operator=(const Handle(SALOMEDS_TableOfIntegerAttribute)& aHandle)
58 Assign(aHandle.Access());
62 Handle(SALOMEDS_TableOfIntegerAttribute)& operator=(const SALOMEDS_TableOfIntegerAttribute* anItem)
64 Assign((Standard_Transient *)anItem);
68 SALOMEDS_TableOfIntegerAttribute* operator->()
70 return (SALOMEDS_TableOfIntegerAttribute *)ControlAccess();
73 SALOMEDS_TableOfIntegerAttribute* operator->() const
75 return (SALOMEDS_TableOfIntegerAttribute *)ControlAccess();
78 Standard_EXPORT ~Handle(SALOMEDS_TableOfIntegerAttribute)();
80 Standard_EXPORT static const Handle(SALOMEDS_TableOfIntegerAttribute) DownCast(const Handle(Standard_Transient)& AnObject);