1 // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef _NMTTools_ListNodeOfListOfCommonBlock_HeaderFile
21 #define _NMTTools_ListNodeOfListOfCommonBlock_HeaderFile
23 #ifndef _Standard_HeaderFile
24 #include <Standard.hxx>
26 #ifndef _Handle_NMTTools_ListNodeOfListOfCommonBlock_HeaderFile
27 #include <Handle_NMTTools_ListNodeOfListOfCommonBlock.hxx>
30 #ifndef _NMTTools_CommonBlock_HeaderFile
31 #include <NMTTools_CommonBlock.hxx>
33 #ifndef _TCollection_MapNode_HeaderFile
34 #include <TCollection_MapNode.hxx>
36 #ifndef _TCollection_MapNodePtr_HeaderFile
37 #include <TCollection_MapNodePtr.hxx>
39 class NMTTools_CommonBlock;
40 class NMTTools_ListOfCommonBlock;
41 class NMTTools_ListIteratorOfListOfCommonBlock;
44 class NMTTools_ListNodeOfListOfCommonBlock : public TCollection_MapNode {
48 void* operator new(size_t,void* anAddress)
52 void* operator new(size_t size)
54 return Standard::Allocate(size);
56 void operator delete(void *anAddress)
58 if (anAddress) Standard::Free((Standard_Address&)anAddress);
62 NMTTools_ListNodeOfListOfCommonBlock(const NMTTools_CommonBlock& I,const TCollection_MapNodePtr& n);
63 NMTTools_CommonBlock& Value() const;
64 Standard_EXPORT ~NMTTools_ListNodeOfListOfCommonBlock();
71 Standard_EXPORT friend Handle_Standard_Type& NMTTools_ListNodeOfListOfCommonBlock_Type_();
72 Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
73 Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const;
93 NMTTools_CommonBlock myValue;
98 #define Item NMTTools_CommonBlock
99 #define Item_hxx <NMTTools_CommonBlock.hxx>
100 #define TCollection_ListNode NMTTools_ListNodeOfListOfCommonBlock
101 #define TCollection_ListNode_hxx <NMTTools_ListNodeOfListOfCommonBlock.hxx>
102 #define TCollection_ListIterator NMTTools_ListIteratorOfListOfCommonBlock
103 #define TCollection_ListIterator_hxx <NMTTools_ListIteratorOfListOfCommonBlock.hxx>
104 #define Handle_TCollection_ListNode Handle_NMTTools_ListNodeOfListOfCommonBlock
105 #define TCollection_ListNode_Type_() NMTTools_ListNodeOfListOfCommonBlock_Type_()
106 #define TCollection_List NMTTools_ListOfCommonBlock
107 #define TCollection_List_hxx <NMTTools_ListOfCommonBlock.hxx>
109 #include <TCollection_ListNode.lxx>
113 #undef TCollection_ListNode
114 #undef TCollection_ListNode_hxx
115 #undef TCollection_ListIterator
116 #undef TCollection_ListIterator_hxx
117 #undef Handle_TCollection_ListNode
118 #undef TCollection_ListNode_Type_
119 #undef TCollection_List
120 #undef TCollection_List_hxx
123 // other Inline functions and methods (like "C++: function call" methods)