Salome HOME
NRI : Change lGeometryClient by lGEOMClient.
[modules/smesh.git] / src / SMDS / SMDS_SequenceOfMesh.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_SequenceOfMesh_HeaderFile
16 #define _SMDS_SequenceOfMesh_HeaderFile
17
18 #ifndef _TCollection_BaseSequence_HeaderFile
19 #include <TCollection_BaseSequence.hxx>
20 #endif
21 #ifndef _Handle_SMDS_Mesh_HeaderFile
22 #include "Handle_SMDS_Mesh.hxx"
23 #endif
24 #ifndef _Handle_SMDS_SequenceNodeOfSequenceOfMesh_HeaderFile
25 #include "Handle_SMDS_SequenceNodeOfSequenceOfMesh.hxx"
26 #endif
27 #ifndef _Standard_Integer_HeaderFile
28 #include <Standard_Integer.hxx>
29 #endif
30 class Standard_NoSuchObject;
31 class Standard_OutOfRange;
32 class SMDS_Mesh;
33 class SMDS_SequenceNodeOfSequenceOfMesh;
34
35
36 #ifndef _Standard_HeaderFile
37 #include <Standard.hxx>
38 #endif
39 #ifndef _Standard_Macro_HeaderFile
40 #include <Standard_Macro.hxx>
41 #endif
42
43 class SMDS_SequenceOfMesh  : public TCollection_BaseSequence {
44
45 public:
46
47     inline void* operator new(size_t,void* anAddress) 
48       {
49         return anAddress;
50       }
51     inline void* operator new(size_t size) 
52       { 
53         return Standard::Allocate(size); 
54       }
55     inline void  operator delete(void *anAddress) 
56       { 
57         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
58       }
59 //    inline void  operator delete(void *anAddress, size_t size) 
60 //      { 
61 //        if (anAddress) Standard::Free((Standard_Address&)anAddress,size); 
62 //      }
63  // Methods PUBLIC
64  // 
65 Standard_EXPORT inline SMDS_SequenceOfMesh();
66 Standard_EXPORT   void Clear() ;
67 ~SMDS_SequenceOfMesh()
68 {
69   Clear();
70 }
71
72 Standard_EXPORT  const SMDS_SequenceOfMesh& Assign(const SMDS_SequenceOfMesh& Other) ;
73  const SMDS_SequenceOfMesh& operator =(const SMDS_SequenceOfMesh& Other) 
74 {
75   return Assign(Other);
76 }
77
78 Standard_EXPORT   void Append(const Handle(SMDS_Mesh)& T) ;
79 Standard_EXPORT inline   void Append(SMDS_SequenceOfMesh& S) ;
80 Standard_EXPORT   void Prepend(const Handle(SMDS_Mesh)& T) ;
81 Standard_EXPORT inline   void Prepend(SMDS_SequenceOfMesh& S) ;
82 Standard_EXPORT inline   void InsertBefore(const Standard_Integer Index,const Handle(SMDS_Mesh)& T) ;
83 Standard_EXPORT inline   void InsertBefore(const Standard_Integer Index,SMDS_SequenceOfMesh& S) ;
84 Standard_EXPORT   void InsertAfter(const Standard_Integer Index,const Handle(SMDS_Mesh)& T) ;
85 Standard_EXPORT inline   void InsertAfter(const Standard_Integer Index,SMDS_SequenceOfMesh& S) ;
86 Standard_EXPORT  const Handle_SMDS_Mesh& First() const;
87 Standard_EXPORT  const Handle_SMDS_Mesh& Last() const;
88 Standard_EXPORT inline   void Split(const Standard_Integer Index,SMDS_SequenceOfMesh& Sub) ;
89 Standard_EXPORT  const Handle_SMDS_Mesh& Value(const Standard_Integer Index) const;
90  const Handle_SMDS_Mesh& operator()(const Standard_Integer Index) const
91 {
92   return Value(Index);
93 }
94
95 Standard_EXPORT   void SetValue(const Standard_Integer Index,const Handle(SMDS_Mesh)& I) ;
96 Standard_EXPORT   Handle_SMDS_Mesh& ChangeValue(const Standard_Integer Index) ;
97   Handle_SMDS_Mesh& operator()(const Standard_Integer Index) 
98 {
99   return ChangeValue(Index);
100 }
101
102 Standard_EXPORT   void Remove(const Standard_Integer Index) ;
103 Standard_EXPORT   void Remove(const Standard_Integer FromIndex,const Standard_Integer ToIndex) ;
104
105
106
107
108
109 protected:
110
111  // Methods PROTECTED
112  // 
113
114
115  // Fields PROTECTED
116  //
117
118
119 private: 
120
121  // Methods PRIVATE
122  // 
123 Standard_EXPORT SMDS_SequenceOfMesh(const SMDS_SequenceOfMesh& Other);
124
125
126  // Fields PRIVATE
127  //
128
129
130 };
131
132 #define SeqItem Handle_SMDS_Mesh
133 #define SeqItem_hxx "SMDS_Mesh.hxx"
134 #define TCollection_SequenceNode SMDS_SequenceNodeOfSequenceOfMesh
135 #define TCollection_SequenceNode_hxx "SMDS_SequenceNodeOfSequenceOfMesh.hxx"
136 #define Handle_TCollection_SequenceNode Handle_SMDS_SequenceNodeOfSequenceOfMesh
137 #define TCollection_SequenceNode_Type_() SMDS_SequenceNodeOfSequenceOfMesh_Type_()
138 #define TCollection_Sequence SMDS_SequenceOfMesh
139 #define TCollection_Sequence_hxx "SMDS_SequenceOfMesh.hxx"
140
141 #include <TCollection_Sequence.lxx>
142
143 #undef SeqItem
144 #undef SeqItem_hxx
145 #undef TCollection_SequenceNode
146 #undef TCollection_SequenceNode_hxx
147 #undef Handle_TCollection_SequenceNode
148 #undef TCollection_SequenceNode_Type_
149 #undef TCollection_Sequence
150 #undef TCollection_Sequence_hxx
151
152
153 // other inline functions and methods (like "C++: function call" methods)
154 //
155
156
157 #endif