1 // SALOME SALOMEDS : data structure of SALOME and sources of Salome data server
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : Handle_SALOMEDS_DataMapNodeOfDataMapStringLabel.hxx
25 // Author : Yves FRICAUD
29 #ifndef _Handle_SALOMEDS_DataMapNodeOfDataMapStringLabel_HeaderFile
30 #define _Handle_SALOMEDS_DataMapNodeOfDataMapStringLabel_HeaderFile
32 #ifndef _Standard_Macro_HeaderFile
33 #include <Standard_Macro.hxx>
35 #ifndef _Standard_HeaderFile
36 #include <Standard.hxx>
39 #ifndef _Handle_TCollection_MapNode_HeaderFile
40 #include <Handle_TCollection_MapNode.hxx>
43 class Standard_Transient;
44 class Handle_Standard_Type;
45 class Handle(TCollection_MapNode);
46 class SALOMEDS_DataMapNodeOfDataMapStringLabel;
47 Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SALOMEDS_DataMapNodeOfDataMapStringLabel);
49 class Handle(SALOMEDS_DataMapNodeOfDataMapStringLabel) : public Handle(TCollection_MapNode) {
51 inline void* operator new(size_t,void* anAddress)
55 inline void* operator new(size_t size)
57 return Standard::Allocate(size);
59 inline void operator delete(void *anAddress)
61 if (anAddress) Standard::Free((Standard_Address&)anAddress);
63 // inline void operator delete(void *anAddress, size_t size)
65 // if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
67 Handle(SALOMEDS_DataMapNodeOfDataMapStringLabel)():Handle(TCollection_MapNode)() {}
68 Handle(SALOMEDS_DataMapNodeOfDataMapStringLabel)(const Handle(SALOMEDS_DataMapNodeOfDataMapStringLabel)& aHandle) : Handle(TCollection_MapNode)(aHandle)
72 Handle(SALOMEDS_DataMapNodeOfDataMapStringLabel)(const SALOMEDS_DataMapNodeOfDataMapStringLabel* anItem) : Handle(TCollection_MapNode)((TCollection_MapNode *)anItem)
76 Handle(SALOMEDS_DataMapNodeOfDataMapStringLabel)& operator=(const Handle(SALOMEDS_DataMapNodeOfDataMapStringLabel)& aHandle)
78 Assign(aHandle.Access());
82 Handle(SALOMEDS_DataMapNodeOfDataMapStringLabel)& operator=(const SALOMEDS_DataMapNodeOfDataMapStringLabel* anItem)
84 Assign((Standard_Transient *)anItem);
88 SALOMEDS_DataMapNodeOfDataMapStringLabel* operator->()
90 return (SALOMEDS_DataMapNodeOfDataMapStringLabel *)ControlAccess();
93 SALOMEDS_DataMapNodeOfDataMapStringLabel* operator->() const
95 return (SALOMEDS_DataMapNodeOfDataMapStringLabel *)ControlAccess();
98 Standard_EXPORT ~Handle(SALOMEDS_DataMapNodeOfDataMapStringLabel)();
100 Standard_EXPORT static const Handle(SALOMEDS_DataMapNodeOfDataMapStringLabel) DownCast(const Handle(Standard_Transient)& AnObject);