Generic enumerator. More...
#include <arccore/common/Collection.h>
Public Member Functions | |
| EnumeratorBase ()=default | |
| Constructs a null enumerator. | |
| EnumeratorBase (EnumeratorImplBase *impl) | |
| Constructs an enumerator associated with the implementation impl. | |
| void | reset () |
| bool | moveNext () |
| void * | current () |
| const void * | current () const |
| bool | operator++ () |
| Advances the enumerator to the next element. | |
Protected Member Functions | |
| EnumeratorImplBase * | _impl () |
| const EnumeratorImplBase * | _impl () const |
Generic enumerator.
This class allows generic iteration over a collection without knowing the type of the collection elements. For iteration using strong typing, you must use the template class EnumeratorT.
Example of enumerator usage:
Definition at line 149 of file arccore/src/common/arccore/common/Collection.h.
|
inlineexplicit |
Constructs an enumerator associated with the implementation impl.
The instance becomes the owner of the implementation, which is destroyed when the instance is destroyed.
Definition at line 162 of file arccore/src/common/arccore/common/Collection.h.
|
inlineprotected |
Definition at line 180 of file arccore/src/common/arccore/common/Collection.h.
|
inlineprotected |
Definition at line 181 of file arccore/src/common/arccore/common/Collection.h.
|
inline |
Definition at line 170 of file arccore/src/common/arccore/common/Collection.h.
|
inline |
Definition at line 171 of file arccore/src/common/arccore/common/Collection.h.
|
inline |
Definition at line 169 of file arccore/src/common/arccore/common/Collection.h.
|
inline |
Advances the enumerator to the next element.
Definition at line 176 of file arccore/src/common/arccore/common/Collection.h.
|
inline |
Definition at line 168 of file arccore/src/common/arccore/common/Collection.h.