Salome HOME
This commit was generated by cvs2git to create branch 'IMPORT'.
[modules/smesh.git] / src / SMDS / SMDS_MeshVolumesIterator.cxx
1 using namespace std;
2 // File:        SMDS_MeshVolumesIterator.cxx
3 // Created:     Thu Jan 24 12:09:12 2002
4 // Author:      Jean-Michel BOULCOURT
5 //              <jmb@coulox.paris1.matra-dtv.fr>
6
7
8 #include "SMDS_MeshVolumesIterator.ixx"
9
10 //=======================================================================
11 //function : SMDS_MeshVolumesIterator
12 //purpose  : 
13 //=======================================================================
14
15 SMDS_MeshVolumesIterator::SMDS_MeshVolumesIterator()
16 {
17 }
18
19 //=======================================================================
20 //function : SMDS_MeshVolumesIterator
21 //purpose  : 
22 //=======================================================================
23
24 SMDS_MeshVolumesIterator::SMDS_MeshVolumesIterator(const Handle(SMDS_Mesh)& M)
25 {
26   Initialize(M);
27 }
28
29 //=======================================================================
30 //function : Initialize
31 //purpose  : 
32 //=======================================================================
33
34 void SMDS_MeshVolumesIterator::Initialize(const Handle(SMDS_Mesh)& M)
35 {
36
37   myMapIterator.Initialize(M->myVolumes);
38   if (More()) {
39     myCurrentMeshElement = myMapIterator.Key();
40   }
41 }
42