![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Standalone range wrapper for OCCT iterators. More...
#include <NCollection_ForwardRange.hxx>
Public Types | |
| using | iterator = NCollection_ForwardRangeIterator<HostType> |
| using | const_iterator = iterator |
| using | sentinel = NCollection_ForwardRangeSentinel |
Public Member Functions | |
| template<typename U = HostType, typename = std::enable_if_t<std::is_copy_constructible_v<U>>> | |
| NCollection_ForwardRange (const HostType &theHost) | |
| Construct from a copyable host (lvalue). | |
| NCollection_ForwardRange (HostType &&theHost) | |
| Construct from an rvalue (moves the host). | |
| NCollection_ForwardRange (const NCollection_ForwardRange &)=delete | |
| NCollection_ForwardRange & | operator= (const NCollection_ForwardRange &)=delete |
| NCollection_ForwardRange (NCollection_ForwardRange &&)=default | |
| NCollection_ForwardRange & | operator= (NCollection_ForwardRange &&)=default |
| iterator | begin () const |
| Returns iterator to the current position of the host. Const-qualified: iteration advances the internal cursor (mutable), not the logical state of the range. | |
| sentinel | end () const |
| Returns sentinel marking the end. | |
| const_iterator | cbegin () const |
| Returns const-access iterator (same as begin). | |
| sentinel | cend () const |
| Returns sentinel marking the end. | |
Standalone range wrapper for OCCT iterators.
Owns a copy/move of the host iterator and provides begin()/end() for range-based for loops. Use this when the host class does not have its own begin()/end() methods.
| HostType | OCCT iterator/explorer with More(), Next(), and a value accessor. |
| using NCollection_ForwardRange< HostType >::iterator = NCollection_ForwardRangeIterator<HostType> |
| using NCollection_ForwardRange< HostType >::sentinel = NCollection_ForwardRangeSentinel |
|
inlineexplicit |
Construct from a copyable host (lvalue).
|
inlineexplicit |
Construct from an rvalue (moves the host).
|
delete |
|
default |
|
inline |
Returns iterator to the current position of the host. Const-qualified: iteration advances the internal cursor (mutable), not the logical state of the range.
|
inline |
Returns const-access iterator (same as begin).
|
inline |
Returns sentinel marking the end.
Returns sentinel marking the end.
|
delete |
|
default |