Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update copyright info (2010->2011)
[modules/smesh.git]
/
src
/
SMDS
/
SMDS_MeshIDFactory.cxx
diff --git
a/src/SMDS/SMDS_MeshIDFactory.cxx
b/src/SMDS/SMDS_MeshIDFactory.cxx
index 88b9ce38d55e6931ea39301692c9c291c3affb95..e1b847042044d0b97054b4b921e361682502ad89 100644
(file)
--- a/
src/SMDS/SMDS_MeshIDFactory.cxx
+++ b/
src/SMDS/SMDS_MeshIDFactory.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-20
08
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-20
11
CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-19,6
+19,7
@@
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+
// SMESH SMDS : implementaion of Salome mesh data structure
// File : SMDS_MeshIDFactory.cxx
// Author : Jean-Michel BOULCOURT
// SMESH SMDS : implementaion of Salome mesh data structure
// File : SMDS_MeshIDFactory.cxx
// Author : Jean-Michel BOULCOURT
@@
-39,14
+40,14
@@
SMDS_MeshIDFactory::SMDS_MeshIDFactory():myMaxID(0)
int SMDS_MeshIDFactory::GetFreeID()
{
int SMDS_MeshIDFactory::GetFreeID()
{
- if (myPoolOfID.empty()) return ++myMaxID;
- else
- {
+
if (myPoolOfID.empty()) return ++myMaxID;
+
else
+
{
set<int>::iterator i = myPoolOfID.begin();
set<int>::iterator i = myPoolOfID.begin();
- int ID = *i;//myPoolOfID.top();
- myPoolOfID.erase( i );//myPoolOfID.pop();
- return ID;
- }
+
int ID = *i;//myPoolOfID.top();
+
myPoolOfID.erase( i );//myPoolOfID.pop();
+
return ID;
+
}
}
//=======================================================================
}
//=======================================================================