Salome HOME
This commit was generated by cvs2git to create branch 'IMPORT'.
[modules/smesh.git] / src / SMDS / SMDS_MeshElementsIterator.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_MeshElementsIterator_HeaderFile
16 #define _SMDS_MeshElementsIterator_HeaderFile
17
18 #ifndef _Handle_SMDS_MeshElement_HeaderFile
19 #include "Handle_SMDS_MeshElement.hxx"
20 #endif
21 #ifndef _SMDS_MapIteratorOfExtendedOrientedMap_HeaderFile
22 #include "SMDS_MapIteratorOfExtendedOrientedMap.hxx"
23 #endif
24 #ifndef _Handle_SMDS_Mesh_HeaderFile
25 #include "Handle_SMDS_Mesh.hxx"
26 #endif
27 #ifndef _Standard_Boolean_HeaderFile
28 #include <Standard_Boolean.hxx>
29 #endif
30 class SMDS_MeshElement;
31 class Standard_NoMoreObject;
32 class Standard_NoSuchObject;
33 class SMDS_Mesh;
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_MeshElementsIterator  {
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 virtual  void Delete() ;
66 Standard_EXPORT virtual ~SMDS_MeshElementsIterator(){Delete();}
67 Standard_EXPORT virtual  void Initialize(const Handle(SMDS_Mesh)& M)  = 0;
68 Standard_EXPORT inline   Standard_Boolean More() const;
69 Standard_EXPORT   void Next() ;
70 Standard_EXPORT inline  const Handle_SMDS_MeshElement& Value() const;
71
72
73
74
75
76 protected:
77
78  // Methods PROTECTED
79  // 
80
81
82  // Fields PROTECTED
83  //
84 Handle_SMDS_MeshElement myCurrentMeshElement;
85 SMDS_MapIteratorOfExtendedOrientedMap myMapIterator;
86
87
88 private: 
89
90  // Methods PRIVATE
91  // 
92
93
94  // Fields PRIVATE
95  //
96
97
98 };
99
100
101 #include "SMDS_MeshElementsIterator.lxx"
102
103
104
105 // other inline functions and methods (like "C++: function call" methods)
106 //
107
108
109 #endif