1 // File generated by CPPExt (Value)
2 // Copyright (C) 1991,1995 by
4 // MATRA DATAVISION, FRANCE
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.
12 // At the termination of the contract, the software and all copies of this
13 // software must be deleted.
15 #ifndef _SMESHDS_ListOfCommand_HeaderFile
16 #define _SMESHDS_ListOfCommand_HeaderFile
18 #ifndef _Standard_Address_HeaderFile
19 #include <Standard_Address.hxx>
21 #ifndef _Handle_SMESHDS_Command_HeaderFile
22 #include "Handle_SMESHDS_Command.hxx"
24 #ifndef _Handle_SMESHDS_ListNodeOfListOfCommand_HeaderFile
25 #include "Handle_SMESHDS_ListNodeOfListOfCommand.hxx"
27 #ifndef _Standard_Integer_HeaderFile
28 #include <Standard_Integer.hxx>
30 #ifndef _Standard_Boolean_HeaderFile
31 #include <Standard_Boolean.hxx>
33 class Standard_NoSuchObject;
34 class SMESHDS_ListIteratorOfListOfCommand;
35 class SMESHDS_Command;
36 class SMESHDS_ListNodeOfListOfCommand;
39 #ifndef _Standard_HeaderFile
40 #include <Standard.hxx>
42 #ifndef _Standard_Macro_HeaderFile
43 #include <Standard_Macro.hxx>
46 class SMESHDS_ListOfCommand {
50 inline void* operator new(size_t,void* anAddress)
54 inline void* operator new(size_t size)
56 return Standard::Allocate(size);
58 inline void operator delete(void *anAddress)
60 if (anAddress) Standard::Free((Standard_Address&)anAddress);
62 // inline void operator delete(void *anAddress, size_t size)
64 // if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
68 Standard_EXPORT SMESHDS_ListOfCommand();
69 Standard_EXPORT void Assign(const SMESHDS_ListOfCommand& Other) ;
70 void operator=(const SMESHDS_ListOfCommand& Other)
75 Standard_EXPORT Standard_Integer Extent() const;
76 Standard_EXPORT void Clear() ;
77 ~SMESHDS_ListOfCommand()
82 Standard_EXPORT inline Standard_Boolean IsEmpty() const;
83 Standard_EXPORT void Prepend(const Handle(SMESHDS_Command)& I) ;
84 Standard_EXPORT void Prepend(SMESHDS_ListOfCommand& Other) ;
85 Standard_EXPORT void Append(const Handle(SMESHDS_Command)& I) ;
86 Standard_EXPORT void Append(SMESHDS_ListOfCommand& Other) ;
87 Standard_EXPORT Handle_SMESHDS_Command& First() const;
88 Standard_EXPORT Handle_SMESHDS_Command& Last() const;
89 Standard_EXPORT void RemoveFirst() ;
90 Standard_EXPORT void Remove(SMESHDS_ListIteratorOfListOfCommand& It) ;
91 Standard_EXPORT void InsertBefore(const Handle(SMESHDS_Command)& I,SMESHDS_ListIteratorOfListOfCommand& It) ;
92 Standard_EXPORT void InsertBefore(SMESHDS_ListOfCommand& Other,SMESHDS_ListIteratorOfListOfCommand& It) ;
93 Standard_EXPORT void InsertAfter(const Handle(SMESHDS_Command)& I,SMESHDS_ListIteratorOfListOfCommand& It) ;
94 Standard_EXPORT void InsertAfter(SMESHDS_ListOfCommand& Other,SMESHDS_ListIteratorOfListOfCommand& It) ;
97 friend class SMESHDS_ListIteratorOfListOfCommand;
115 Standard_EXPORT SMESHDS_ListOfCommand(const SMESHDS_ListOfCommand& Other);
120 Standard_Address myFirst;
121 Standard_Address myLast;
126 #define Item Handle_SMESHDS_Command
127 #define Item_hxx <SMESHDS_Command.hxx>
128 #define TCollection_ListNode SMESHDS_ListNodeOfListOfCommand
129 #define TCollection_ListNode_hxx <SMESHDS_ListNodeOfListOfCommand.hxx>
130 #define TCollection_ListIterator SMESHDS_ListIteratorOfListOfCommand
131 #define TCollection_ListIterator_hxx <SMESHDS_ListIteratorOfListOfCommand.hxx>
132 #define Handle_TCollection_ListNode Handle_SMESHDS_ListNodeOfListOfCommand
133 #define TCollection_ListNode_Type_() SMESHDS_ListNodeOfListOfCommand_Type_()
134 #define TCollection_List SMESHDS_ListOfCommand
135 #define TCollection_List_hxx <SMESHDS_ListOfCommand.hxx>
137 #include <TCollection_List.lxx>
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
151 // other inline functions and methods (like "C++: function call" methods)