From: kgv Date: Tue, 25 Dec 2018 17:25:55 +0000 (+0300) Subject: 0030424: C# wrapper - implement IEnumerable interface by NCollection classes X-Git-Tag: V7_4_0_beta~276 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FIR-2018-12-29;p=occt.git 0030424: C# wrapper - implement IEnumerable interface by NCollection classes TopExp_Explorer::Value() - added Current() alias for providing interface consistent to other OCCT Iterators. --- diff --git a/src/TopExp/TopExp_Explorer.hxx b/src/TopExp/TopExp_Explorer.hxx index f99ae14276..dd69a2a42d 100644 --- a/src/TopExp/TopExp_Explorer.hxx +++ b/src/TopExp/TopExp_Explorer.hxx @@ -125,7 +125,12 @@ public: //! Exceptions //! Standard_NoMoreObject if there are no more shapes to explore. Standard_EXPORT void Next(); - + + //! Returns the current shape in the exploration. + //! Exceptions + //! Standard_NoSuchObject if this explorer has no more shapes to explore. + const TopoDS_Shape& Value() const { return Current(); } + //! Returns the current shape in the exploration. //! Exceptions //! Standard_NoSuchObject if this explorer has no more shapes to explore.