From 708dbb145f2606dad9f4170bb95e463cf8513ca3 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 18 Jan 2011 10:51:03 +0000 Subject: [PATCH] 0020832: EDF 1359 SMESH : Automatic meshing of boundary layers + _Self + operator++(int) + bool + operator==(const _Self& __x) const --- src/SMDS/SMDS_StdIterator.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/SMDS/SMDS_StdIterator.hxx b/src/SMDS/SMDS_StdIterator.hxx index f14b7e3fb..ee4352e27 100644 --- a/src/SMDS/SMDS_StdIterator.hxx +++ b/src/SMDS/SMDS_StdIterator.hxx @@ -60,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 -- 2.39.2