Salome HOME
Update copyright information
[modules/smesh.git] / src / SMDS / SMDS_StdIterator.hxx
index 97c4ae9ad871a0169b50f8f9be2e25ab73500622..f09647f1ff3fcc4441e3ca21269ff4dcb93fe1ad 100644 (file)
@@ -1,31 +1,27 @@
-//  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2012  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
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
 //
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of the GNU Lesser General Public
-//  License as published by the Free Software Foundation; either
-//  version 2.1 of the License.
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
 //
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-//
-//  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_StdIterator.hxx
 // Created   : Fri Feb  5 11:03:46 2010
 // Author    : Edward AGAPOV (eap)
-
-
+//
 #ifndef __SMDS_StdIterator_HXX__
 #define __SMDS_StdIterator_HXX__
 
@@ -64,11 +60,21 @@ public:
   operator++()
   { _value = _piterator->more() ? VALUE( _piterator->next()) : 0; return *this; }
 
+  //  Step to the next one
+  _Self
+  operator++(int)
+  { _Self res = *this; _value = _piterator->more() ? VALUE( _piterator->next()) : 0; return res; }
+
   // Test of end
   bool
   operator!=(const _Self& __x) const
   { return !_EqualVALUE( _value, __x._value); }
 
+  // Test of equality
+  bool
+  operator==(const _Self& __x) const
+  { return _EqualVALUE( _value, __x._value); }
+
 };
 
 #endif