Salome HOME
NRI : Add GEOM includes and libs.
[modules/smesh.git] / src / SMESHDS / SMESHDS_ListOfAsciiString.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_ListOfAsciiString_HeaderFile
16 #define _SMESHDS_ListOfAsciiString_HeaderFile
17
18 #ifndef _Standard_Address_HeaderFile
19 #include <Standard_Address.hxx>
20 #endif
21 #ifndef _Handle_SMESHDS_ListNodeOfListOfAsciiString_HeaderFile
22 #include "Handle_SMESHDS_ListNodeOfListOfAsciiString.hxx"
23 #endif
24 #ifndef _Standard_Integer_HeaderFile
25 #include <Standard_Integer.hxx>
26 #endif
27 #ifndef _Standard_Boolean_HeaderFile
28 #include <Standard_Boolean.hxx>
29 #endif
30 class Standard_NoSuchObject;
31 class SMESHDS_ListIteratorOfListOfAsciiString;
32 class TCollection_AsciiString;
33 class SMESHDS_ListNodeOfListOfAsciiString;
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 SMESHDS_ListOfAsciiString  {
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 SMESHDS_ListOfAsciiString();
66 Standard_EXPORT   void Assign(const SMESHDS_ListOfAsciiString& Other) ;
67   void operator=(const SMESHDS_ListOfAsciiString& Other) 
68 {
69   Assign(Other);
70 }
71
72 Standard_EXPORT   Standard_Integer Extent() const;
73 Standard_EXPORT   void Clear() ;
74 ~SMESHDS_ListOfAsciiString()
75 {
76   Clear();
77 }
78
79 Standard_EXPORT inline   Standard_Boolean IsEmpty() const;
80 Standard_EXPORT   void Prepend(const TCollection_AsciiString& I) ;
81 Standard_EXPORT   void Prepend(SMESHDS_ListOfAsciiString& Other) ;
82 Standard_EXPORT   void Append(const TCollection_AsciiString& I) ;
83 Standard_EXPORT   void Append(SMESHDS_ListOfAsciiString& Other) ;
84 Standard_EXPORT   TCollection_AsciiString& First() const;
85 Standard_EXPORT   TCollection_AsciiString& Last() const;
86 Standard_EXPORT   void RemoveFirst() ;
87 Standard_EXPORT   void Remove(SMESHDS_ListIteratorOfListOfAsciiString& It) ;
88 Standard_EXPORT   void InsertBefore(const TCollection_AsciiString& I,SMESHDS_ListIteratorOfListOfAsciiString& It) ;
89 Standard_EXPORT   void InsertBefore(SMESHDS_ListOfAsciiString& Other,SMESHDS_ListIteratorOfListOfAsciiString& It) ;
90 Standard_EXPORT   void InsertAfter(const TCollection_AsciiString& I,SMESHDS_ListIteratorOfListOfAsciiString& It) ;
91 Standard_EXPORT   void InsertAfter(SMESHDS_ListOfAsciiString& Other,SMESHDS_ListIteratorOfListOfAsciiString& It) ;
92
93
94 friend class SMESHDS_ListIteratorOfListOfAsciiString;
95
96
97
98 protected:
99
100  // Methods PROTECTED
101  // 
102
103
104  // Fields PROTECTED
105  //
106
107
108 private: 
109
110  // Methods PRIVATE
111  // 
112 Standard_EXPORT SMESHDS_ListOfAsciiString(const SMESHDS_ListOfAsciiString& Other);
113
114
115  // Fields PRIVATE
116  //
117 Standard_Address myFirst;
118 Standard_Address myLast;
119
120
121 };
122
123 #define Item TCollection_AsciiString
124 #define Item_hxx <TCollection_AsciiString.hxx>
125 #define TCollection_ListNode SMESHDS_ListNodeOfListOfAsciiString
126 #define TCollection_ListNode_hxx <SMESHDS_ListNodeOfListOfAsciiString.hxx>
127 #define TCollection_ListIterator SMESHDS_ListIteratorOfListOfAsciiString
128 #define TCollection_ListIterator_hxx <SMESHDS_ListIteratorOfListOfAsciiString.hxx>
129 #define Handle_TCollection_ListNode Handle_SMESHDS_ListNodeOfListOfAsciiString
130 #define TCollection_ListNode_Type_() SMESHDS_ListNodeOfListOfAsciiString_Type_()
131 #define TCollection_List SMESHDS_ListOfAsciiString
132 #define TCollection_List_hxx <SMESHDS_ListOfAsciiString.hxx>
133
134 #include <TCollection_List.lxx>
135
136 #undef Item
137 #undef Item_hxx
138 #undef TCollection_ListNode
139 #undef TCollection_ListNode_hxx
140 #undef TCollection_ListIterator
141 #undef TCollection_ListIterator_hxx
142 #undef Handle_TCollection_ListNode
143 #undef TCollection_ListNode_Type_
144 #undef TCollection_List
145 #undef TCollection_List_hxx
146
147
148 // other inline functions and methods (like "C++: function call" methods)
149 //
150
151
152 #endif