Salome HOME
f303d07be6125f92686acde1833aa564988b2e16
[modules/smesh.git] / src / SMESHDS / SMESHDS_ListOfPtrHypothesis.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 _SMESHDS_ListOfPtrHypothesis_HeaderFile
16 #define _SMESHDS_ListOfPtrHypothesis_HeaderFile
17
18 #ifndef _Standard_Address_HeaderFile
19 #include <Standard_Address.hxx>
20 #endif
21 #ifndef _SMESHDS_PtrHypothesis_HeaderFile
22 #include "SMESHDS_PtrHypothesis.hxx"
23 #endif
24 #ifndef _Handle_SMESHDS_ListNodeOfListOfPtrHypothesis_HeaderFile
25 #include "Handle_SMESHDS_ListNodeOfListOfPtrHypothesis.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 SMESHDS_ListIteratorOfListOfPtrHypothesis;
35 class SMESHDS_ListNodeOfListOfPtrHypothesis;
36
37
38 #ifndef _Standard_HeaderFile
39 #include <Standard.hxx>
40 #endif
41 #ifndef _Standard_Macro_HeaderFile
42 #include <Standard_Macro.hxx>
43 #endif
44
45 class SMESHDS_ListOfPtrHypothesis  {
46
47 public:
48
49     inline void* operator new(size_t,void* anAddress) 
50       {
51         return anAddress;
52       }
53     inline void* operator new(size_t size) 
54       { 
55         return Standard::Allocate(size); 
56       }
57     inline void  operator delete(void *anAddress) 
58       { 
59         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
60       }
61 //    inline void  operator delete(void *anAddress, size_t size) 
62 //      { 
63 //        if (anAddress) Standard::Free((Standard_Address&)anAddress,size); 
64 //      }
65  // Methods PUBLIC
66  // 
67 Standard_EXPORT SMESHDS_ListOfPtrHypothesis();
68 Standard_EXPORT   void Assign(const SMESHDS_ListOfPtrHypothesis& Other) ;
69   void operator=(const SMESHDS_ListOfPtrHypothesis& Other) 
70 {
71   Assign(Other);
72 }
73
74 Standard_EXPORT   Standard_Integer Extent() const;
75 Standard_EXPORT   void Clear() ;
76 ~SMESHDS_ListOfPtrHypothesis()
77 {
78   Clear();
79 }
80
81 Standard_EXPORT inline   Standard_Boolean IsEmpty() const;
82 Standard_EXPORT   void Prepend(const SMESHDS_PtrHypothesis& I) ;
83 Standard_EXPORT   void Prepend(SMESHDS_ListOfPtrHypothesis& Other) ;
84 Standard_EXPORT   void Append(const SMESHDS_PtrHypothesis& I) ;
85 Standard_EXPORT   void Append(SMESHDS_ListOfPtrHypothesis& Other) ;
86 Standard_EXPORT   SMESHDS_PtrHypothesis& First() const;
87 Standard_EXPORT   SMESHDS_PtrHypothesis& Last() const;
88 Standard_EXPORT   void RemoveFirst() ;
89 Standard_EXPORT   void Remove(SMESHDS_ListIteratorOfListOfPtrHypothesis& It) ;
90 Standard_EXPORT   void InsertBefore(const SMESHDS_PtrHypothesis& I,SMESHDS_ListIteratorOfListOfPtrHypothesis& It) ;
91 Standard_EXPORT   void InsertBefore(SMESHDS_ListOfPtrHypothesis& Other,SMESHDS_ListIteratorOfListOfPtrHypothesis& It) ;
92 Standard_EXPORT   void InsertAfter(const SMESHDS_PtrHypothesis& I,SMESHDS_ListIteratorOfListOfPtrHypothesis& It) ;
93 Standard_EXPORT   void InsertAfter(SMESHDS_ListOfPtrHypothesis& Other,SMESHDS_ListIteratorOfListOfPtrHypothesis& It) ;
94
95
96 friend class SMESHDS_ListIteratorOfListOfPtrHypothesis;
97
98
99
100 protected:
101
102  // Methods PROTECTED
103  // 
104
105
106  // Fields PROTECTED
107  //
108
109
110 private: 
111
112  // Methods PRIVATE
113  // 
114 Standard_EXPORT SMESHDS_ListOfPtrHypothesis(const SMESHDS_ListOfPtrHypothesis& Other);
115
116
117  // Fields PRIVATE
118  //
119 Standard_Address myFirst;
120 Standard_Address myLast;
121
122
123 };
124
125 #define Item SMESHDS_PtrHypothesis
126 #define Item_hxx <SMESHDS_PtrHypothesis.hxx>
127 #define TCollection_ListNode SMESHDS_ListNodeOfListOfPtrHypothesis
128 #define TCollection_ListNode_hxx <SMESHDS_ListNodeOfListOfPtrHypothesis.hxx>
129 #define TCollection_ListIterator SMESHDS_ListIteratorOfListOfPtrHypothesis
130 #define TCollection_ListIterator_hxx <SMESHDS_ListIteratorOfListOfPtrHypothesis.hxx>
131 #define Handle_TCollection_ListNode Handle_SMESHDS_ListNodeOfListOfPtrHypothesis
132 #define TCollection_ListNode_Type_() SMESHDS_ListNodeOfListOfPtrHypothesis_Type_()
133 #define TCollection_List SMESHDS_ListOfPtrHypothesis
134 #define TCollection_List_hxx <SMESHDS_ListOfPtrHypothesis.hxx>
135
136 #include <TCollection_List.lxx>
137
138 #undef Item
139 #undef Item_hxx
140 #undef TCollection_ListNode
141 #undef TCollection_ListNode_hxx
142 #undef TCollection_ListIterator
143 #undef TCollection_ListIterator_hxx
144 #undef Handle_TCollection_ListNode
145 #undef TCollection_ListNode_Type_
146 #undef TCollection_List
147 #undef TCollection_List_hxx
148
149
150 // other inline functions and methods (like "C++: function call" methods)
151 //
152
153
154 #endif