X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMDS%2FSMDS_StdIterator.hxx;h=f09647f1ff3fcc4441e3ca21269ff4dcb93fe1ad;hb=43db13f33a1d75fae36db8f06fa378ed7906a332;hp=97c4ae9ad871a0169b50f8f9be2e25ab73500622;hpb=48378761b22a78c1cd51a24166b5bc0a2daad2c4;p=modules%2Fsmesh.git diff --git a/src/SMDS/SMDS_StdIterator.hxx b/src/SMDS/SMDS_StdIterator.hxx index 97c4ae9ad..f09647f1f 100644 --- a/src/SMDS/SMDS_StdIterator.hxx +++ b/src/SMDS/SMDS_StdIterator.hxx @@ -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