![]() |
SCENE C++ API
2.1.4
|
A general iterator interface for arbitrary collections. More...
#include <lsiterator.h>
Inheritance diagram for LSIterator< ValueT >:Public Member Functions | |
| LSIterator () | |
| Constructs a null iterator. More... | |
| LSIterator (const LSIterator< ValueT > &iter) | |
| Constructs a copy of the iterator iter. More... | |
| LSIterator & | operator= (const LSIterator< ValueT > &iter) |
| Assigns a copy of the iterator iter to this iterator. More... | |
| bool | moveNext () |
| Advances the iterator to the next element of the container. More... | |
| ValueT | getCurrent () const |
| Gets the element at which the iterator currently points. More... | |
| void | getCurrent (ValueT &out) const |
| Gets the element at which the iterator currently points. More... | |
| LSIterator< ValueT > | where (bool(*func)(const ValueT &)) const |
| Filters the elements returned by the iterator based on a given filter function. More... | |
| void * | operator new (size_t tSize) |
| Default allocation function. More... | |
| void | operator delete (void *p) |
| Default deallocation function. More... | |
A general iterator interface for arbitrary collections.
| LSIterator | ( | ) |
Constructs a null iterator.
| LSIterator | ( | const LSIterator< ValueT > & | iter | ) |
Constructs a copy of the iterator iter.
| iter | The iterator from which to create a copy. |
| LSIterator& operator= | ( | const LSIterator< ValueT > & | iter | ) |
Assigns a copy of the iterator iter to this iterator.
| iter | The iterator which is assigned to this iterator. |
| bool moveNext | ( | ) |
Advances the iterator to the next element of the container.
| ValueT getCurrent | ( | ) | const |
Gets the element at which the iterator currently points.
| void getCurrent | ( | ValueT & | out | ) | const |
Gets the element at which the iterator currently points.
| [out] | out | The element at which the iterator currently points. |
| LSIterator<ValueT> where | ( | bool(*)(const ValueT &) | func | ) | const |
Filters the elements returned by the iterator based on a given filter function.
The input function func has to be a function type which takes a const reference to the value type and returns an boolean based on the filter result.
| void* operator new | ( | size_t | tSize | ) |
Default allocation function.
Overloaded in order to always allocate LSString objects in the context of this module.
| void operator delete | ( | void * | p | ) |
Default deallocation function.
Overloaded in order to always deallocate LSString objects in the context of this module.