Salome HOME
yfr : Merge with v1.2
[modules/smesh.git] / src / SMDS / SMDS_MeshNodesIterator.cxx
1 using namespace std;
2 // File:        SMDS_MeshNodesIterator.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_MeshNodesIterator.ixx"
9
10 //=======================================================================
11 //function : SMDS_MeshNodesIterator
12 //purpose  : 
13 //=======================================================================
14
15 SMDS_MeshNodesIterator::SMDS_MeshNodesIterator()
16 {
17 }
18
19 //=======================================================================
20 //function : SMDS_MeshNodesIterator
21 //purpose  : 
22 //=======================================================================
23
24 SMDS_MeshNodesIterator::SMDS_MeshNodesIterator(const Handle(SMDS_Mesh)& M)
25 {
26   Initialize(M);
27 }
28
29 //=======================================================================
30 //function : Initialize
31 //purpose  : 
32 //=======================================================================
33
34 void SMDS_MeshNodesIterator::Initialize(const Handle(SMDS_Mesh)& M)
35 {
36
37   myMapIterator.Initialize(M->myNodes);
38   if (More()) {
39     myCurrentMeshElement = myMapIterator.Key();
40   }
41 }
42