PLaSK library
|
Polymorphic iterator that wrap another (usually not polymorphic) iterator (of type wrapped_iterator_type). More...
#include <plask/utils/iterators.hpp>
Public Member Functions | |
PolymorphicForwardIteratorWrapperImpl (wrapped_iterator_type wrapped_iterator) | |
ReferenceT | dereference () const override |
void | increment () override |
Iterate to next value. | |
bool | equal (const PolymorphicForwardIteratorImpl< ValueT, ReferenceT > &other) const override |
Check if this is equal to other . | |
std::unique_ptr< PolymorphicForwardIteratorImpl< ValueT, ReferenceT > > | clone () const override |
Clone this iterator. | |
Public Member Functions inherited from plask::PolymorphicForwardIteratorImpl< ValueT, ReferenceT > | |
virtual | ~PolymorphicForwardIteratorImpl () |
Virtual destructor, do nothing. | |
Public Attributes | |
wrapped_iterator_type | wrapped_iterator |
Additional Inherited Members | |
Public Types inherited from plask::PolymorphicForwardIteratorImpl< ValueT, ReferenceT > | |
typedef ValueT | value_type |
Type of objects pointed by the iterator. | |
typedef ReferenceT | reference |
Type to represent a reference to an object pointed by the iterator. | |
Polymorphic iterator that wrap another (usually not polymorphic) iterator (of type wrapped_iterator_type).
Definition at line 100 of file iterators.hpp.
|
inline |
Definition at line 104 of file iterators.hpp.
|
inlineoverridevirtual |
Clone this iterator.
*this
, allocated with new operator (caller is responsible for deleting it) Implements plask::PolymorphicForwardIteratorImpl< ValueT, ReferenceT >.
Definition at line 114 of file iterators.hpp.
|
inlineoverridevirtual |
Implements plask::PolymorphicForwardIteratorImpl< ValueT, ReferenceT >.
Definition at line 106 of file iterators.hpp.
|
inlineoverridevirtual |
Check if this is equal to other
.
Implements plask::PolymorphicForwardIteratorImpl< ValueT, ReferenceT >.
Definition at line 110 of file iterators.hpp.
|
inlineoverridevirtual |
Iterate to next value.
Implements plask::PolymorphicForwardIteratorImpl< ValueT, ReferenceT >.
Definition at line 108 of file iterators.hpp.
wrapped_iterator_type plask::PolymorphicForwardIteratorWrapperImpl< wrapped_iterator_type, ValueT, ReferenceT >::wrapped_iterator |
Definition at line 102 of file iterators.hpp.