![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
STL input iterator that wraps an OCCT More()/Next() iterator. More...
#include <NCollection_ForwardRange.hxx>
Data Structures | |
| struct | PostfixProxy |
| Postfix increment: captures the current value, then advances. Returns a proxy holding the old value (safe for non-copyable hosts). More... | |
Public Types | |
| using | value_type = std::remove_cv_t<std::remove_reference_t<RawReturn>> |
| using | difference_type = std::ptrdiff_t |
| using | iterator_category = std::input_iterator_tag |
| using | reference = RawReturn |
| using | pointer |
Public Member Functions | |
| NCollection_ForwardRangeIterator (HostType *theHost) | |
| Construct from a pointer to the host iterator. | |
| RawReturn | operator* () const |
| Dereference: returns the current value from the host. | |
| pointer | operator-> () const |
| Arrow operator: returns a pointer or proxy to the current value. | |
| NCollection_ForwardRangeIterator & | operator++ () |
| Prefix increment: advances the host iterator. | |
| PostfixProxy | operator++ (int) |
STL input iterator that wraps an OCCT More()/Next() iterator.
Holds a non-owning pointer to the host iterator/explorer. The host must outlive this iterator (guaranteed by range-for semantics).
| HostType | OCCT iterator/explorer with More(), Next(), and a value accessor. |
| using NCollection_ForwardRangeIterator< HostType >::difference_type = std::ptrdiff_t |
| using NCollection_ForwardRangeIterator< HostType >::iterator_category = std::input_iterator_tag |
| using NCollection_ForwardRangeIterator< HostType >::reference = RawReturn |
| using NCollection_ForwardRangeIterator< HostType >::value_type = std::remove_cv_t<std::remove_reference_t<RawReturn>> |
|
inlineexplicit |
Construct from a pointer to the host iterator.
|
inline |
Dereference: returns the current value from the host.
|
inline |
Prefix increment: advances the host iterator.
|
inline |
|
inline |
Arrow operator: returns a pointer or proxy to the current value.