0030424: C# wrapper - implement IEnumerable interface by NCollection classes IR-2018-12-29
authorkgv <kgv@opencascade.com>
Tue, 25 Dec 2018 17:25:55 +0000 (20:25 +0300)
committerbugmaster <bugmaster@opencascade.com>
Mon, 31 Dec 2018 09:30:00 +0000 (12:30 +0300)
TopExp_Explorer::Value() - added Current() alias for providing interface consistent to other OCCT Iterators.

src/TopExp/TopExp_Explorer.hxx

index f99ae14..dd69a2a 100644 (file)
@@ -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.