PLCnext API Documentation 24.0.0.71
|
Implements an empty enumerator, that is, the first call of MoveNext() will return false
.
More...
#include <Enumerator.hxx>
Public Member Functions | |
Empty (void)=default | |
Constructs an Empty instance. | |
Empty (const Empty &arg)=default | |
Copy constructor. More... | |
Empty & | operator= (const Empty &arg)=default |
Assignment operator. More... | |
virtual | ~Empty (void)=default |
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... | |
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 | |
![]() | |
typedef std::shared_ptr< IEnumerator > | Ptr |
The smart pointer tpye of this interface. | |
![]() | |
IEnumerator (void)=default | |
Constructs an IEnumerator instance. | |
virtual | ~IEnumerator (void)=default |
Destructs this instance and frees all resources. | |
IEnumerator (const IEnumerator &arg)=default | |
Copies an IEnumerator instance. More... | |
IEnumerator & | operator= (const IEnumerator &arg)=default |
Assigns an IEnumerator instance. More... | |
Implements an empty enumerator, that is, the first call of MoveNext() will return false
.
Use Enumerator<T>::CreateEmpty() to create an insatnce of this class.
|
default |
Copy constructor.
arg | The argument to copy. |
|
inlineoverridevirtual |
Gets the element at the current position.
Depending an the template parameter type of this interface, a reference or even const reference might be returned.
Implements Arp::IEnumerator< T >.
|
inlineoverridevirtual |
Moves this enumerator to the next position.
false
if the end of the container/collections was reached and the enumerator was not moved, otherwise false
.See comments of interface declaration for more information about this operation.
Implements Arp::IEnumerator< T >.
|
default |
Assignment operator.
arg | The argument to copy. |