|
PLCnext API Documentation 25.6.0.37
|
This class implements an enumerator adapter for STL container based on iterators. More...
#include <Enumerator.StlAdapter.hxx>

Public Member Functions | |
| StlAdapter (Iterator begin, Iterator end) | |
| Constructs an StlAdapter instance. More... | |
| StlAdapter (const StlAdapter &arg)=delete | |
| StlAdapter (StlAdapter &&arg) noexcept | |
| Move constructor. More... | |
| StlAdapter & | operator= (const StlAdapter &arg)=delete |
| StlAdapter & | operator= (StlAdapter &&arg) noexcept |
| Move assignment operator. More... | |
| ~StlAdapter (void) override | |
| Destructs this instance and frees all resources. | |
| bool | MoveNext (void) override |
| Moves this enumerator to the next position. More... | |
| T | GetCurrent (void) override |
| Gets the element at the current position. More... | |
Public Member Functions inherited from Arp::Base::Core::IEnumerator< T > | |
| IEnumerator (void)=default | |
| Constructs an IEnumerator instance. | |
| IEnumerator (const IEnumerator &arg)=default | |
| Deleted copy constructor. | |
| IEnumerator (IEnumerator &&arg) noexcept=default | |
| Move constructor. | |
| IEnumerator & | operator= (const IEnumerator &arg)=default |
| Deleted copy-assignment IEnumerator. | |
| IEnumerator & | operator= (IEnumerator &&arg) noexcept=default |
| Move-assignment operator. | |
| virtual | ~IEnumerator (void)=default |
| Destructs this instance and frees all resources. | |
| virtual bool | MoveNext (void)=0 |
| Moves this enumerator to the next position. More... | |
| virtual T | GetCurrent (void)=0 |
| Gets the element at the current position. More... | |
Additional Inherited Members | |
Public Types inherited from Arp::Base::Core::IEnumerator< T > | |
| using | Ptr = std::shared_ptr< IEnumerator > |
| The smart pointer type of this interface. | |
| using | ValueType = T |
| Type of the enumerated values | |
This class implements an enumerator adapter for STL container based on iterators.
| Iterator | The iterator type of the container. |
| IteratorAdapter | The iterator type of the container. |
Use Enumerator<T>::CreateStlAdapter() to create an instance of this class.
|
inline |
Constructs an StlAdapter instance.
| begin | The begin iterator of the container to enumerate. |
| end | The end iterator of the container to enumerate. |
|
inlinedefaultnoexcept |
Move constructor.
| arg | The argument to move. |
|
inlineoverridevirtual |
Gets the element at the current position.
Depending on the template parameter type of this interface, a reference or even const reference might be returned.
| InvalidOperationException | When GetCurrent() is called before MoveNext() or after MoveNext() has returned false once. |
Implements Arp::Base::Core::IEnumerator< T >.
|
inlineoverridevirtual |
Moves this enumerator to the next position.
false if the end of the container/collections/enumeration has reached, otherwise true.Implements Arp::Base::Core::IEnumerator< T >.
|
inlinedefaultnoexcept |
Move assignment operator.
| arg | The argument to move. |