Salome HOME
NRI : Change lGeometryClient by lGEOMClient.
[modules/smesh.git] / src / SMDS / SMDS_ListOfMeshElement.hxx
1 // File generated by CPPExt (Value)
2 //                     Copyright (C) 1991,1995 by
3 //  
4 //                      MATRA DATAVISION, FRANCE
5 //  
6 // This software is furnished in accordance with the terms and conditions
7 // of the contract and with the inclusion of the above copyright notice.
8 // This software or any other copy thereof may not be provided or otherwise
9 // be made available to any other person. No title to an ownership of the
10 // software is hereby transferred.
11 //  
12 // At the termination of the contract, the software and all copies of this
13 // software must be deleted.
14
15 #ifndef _SMDS_ListOfMeshElement_HeaderFile
16 #define _SMDS_ListOfMeshElement_HeaderFile
17
18 #ifndef _Standard_Address_HeaderFile
19 #include <Standard_Address.hxx>
20 #endif
21 #ifndef _Handle_SMDS_MeshElement_HeaderFile
22 #include "Handle_SMDS_MeshElement.hxx"
23 #endif
24 #ifndef _Handle_SMDS_ListNodeOfListOfMeshElement_HeaderFile
25 #include "Handle_SMDS_ListNodeOfListOfMeshElement.hxx"
26 #endif
27 #ifndef _Standard_Integer_HeaderFile
28 #include <Standard_Integer.hxx>
29 #endif
30 #ifndef _Standard_Boolean_HeaderFile
31 #include <Standard_Boolean.hxx>
32 #endif
33 class Standard_NoSuchObject;
34 class SMDS_ListIteratorOfListOfMeshElement;
35 class SMDS_MeshElement;
36 class SMDS_ListNodeOfListOfMeshElement;
37
38
39 #ifndef _Standard_HeaderFile
40 #include <Standard.hxx>
41 #endif
42 #ifndef _Standard_Macro_HeaderFile
43 #include <Standard_Macro.hxx>
44 #endif
45
46 class SMDS_ListOfMeshElement  {
47
48 public:
49
50     inline void* operator new(size_t,void* anAddress) 
51       {
52         return anAddress;
53       }
54     inline void* operator new(size_t size) 
55       { 
56         return Standard::Allocate(size); 
57       }
58     inline void  operator delete(void *anAddress) 
59       { 
60         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
61       }
62 //    inline void  operator delete(void *anAddress, size_t size) 
63 //      { 
64 //        if (anAddress) Standard::Free((Standard_Address&)anAddress,size); 
65 //      }
66  // Methods PUBLIC
67  // 
68 Standard_EXPORT SMDS_ListOfMeshElement();
69 Standard_EXPORT   void Assign(const SMDS_ListOfMeshElement& Other) ;
70   void operator=(const SMDS_ListOfMeshElement& Other) 
71 {
72   Assign(Other);
73 }
74
75 Standard_EXPORT   Standard_Integer Extent() const;
76 Standard_EXPORT   void Clear() ;
77 ~SMDS_ListOfMeshElement()
78 {
79   Clear();
80 }
81
82 Standard_EXPORT inline   Standard_Boolean IsEmpty() const;
83 Standard_EXPORT   void Prepend(const Handle(SMDS_MeshElement)& I) ;
84 Standard_EXPORT   void Prepend(SMDS_ListOfMeshElement& Other) ;
85 Standard_EXPORT   void Append(const Handle(SMDS_MeshElement)& I) ;
86 Standard_EXPORT   void Append(SMDS_ListOfMeshElement& Other) ;
87 Standard_EXPORT   Handle_SMDS_MeshElement& First() const;
88 Standard_EXPORT   Handle_SMDS_MeshElement& Last() const;
89 Standard_EXPORT   void RemoveFirst() ;
90 Standard_EXPORT   void Remove(SMDS_ListIteratorOfListOfMeshElement& It) ;
91 Standard_EXPORT   void InsertBefore(const Handle(SMDS_MeshElement)& I,SMDS_ListIteratorOfListOfMeshElement& It) ;
92 Standard_EXPORT   void InsertBefore(SMDS_ListOfMeshElement& Other,SMDS_ListIteratorOfListOfMeshElement& It) ;
93 Standard_EXPORT   void InsertAfter(const Handle(SMDS_MeshElement)& I,SMDS_ListIteratorOfListOfMeshElement& It) ;
94 Standard_EXPORT   void InsertAfter(SMDS_ListOfMeshElement& Other,SMDS_ListIteratorOfListOfMeshElement& It) ;
95
96
97 friend class SMDS_ListIteratorOfListOfMeshElement;
98
99
100
101 protected:
102
103  // Methods PROTECTED
104  // 
105
106
107  // Fields PROTECTED
108  //
109
110
111 private: 
112
113  // Methods PRIVATE
114  // 
115 Standard_EXPORT SMDS_ListOfMeshElement(const SMDS_ListOfMeshElement& Other);
116
117
118  // Fields PRIVATE
119  //
120 Standard_Address myFirst;
121 Standard_Address myLast;
122
123
124 };
125
126 #define Item Handle_SMDS_MeshElement
127 #define Item_hxx <SMDS_MeshElement.hxx>
128 #define TCollection_ListNode SMDS_ListNodeOfListOfMeshElement
129 #define TCollection_ListNode_hxx <SMDS_ListNodeOfListOfMeshElement.hxx>
130 #define TCollection_ListIterator SMDS_ListIteratorOfListOfMeshElement
131 #define TCollection_ListIterator_hxx <SMDS_ListIteratorOfListOfMeshElement.hxx>
132 #define Handle_TCollection_ListNode Handle_SMDS_ListNodeOfListOfMeshElement
133 #define TCollection_ListNode_Type_() SMDS_ListNodeOfListOfMeshElement_Type_()
134 #define TCollection_List SMDS_ListOfMeshElement
135 #define TCollection_List_hxx <SMDS_ListOfMeshElement.hxx>
136
137 #include <TCollection_List.lxx>
138
139 #undef Item
140 #undef Item_hxx
141 #undef TCollection_ListNode
142 #undef TCollection_ListNode_hxx
143 #undef TCollection_ListIterator
144 #undef TCollection_ListIterator_hxx
145 #undef Handle_TCollection_ListNode
146 #undef TCollection_ListNode_Type_
147 #undef TCollection_List
148 #undef TCollection_List_hxx
149
150
151 // other inline functions and methods (like "C++: function call" methods)
152 //
153
154
155 #endif