|
Cogs.Core
|
Iterator type for iterating over ComponentCollectionBase. More...
#include <ComponentCollection.h>
Public Types | |
| typedef std::forward_iterator_tag | iterator_category |
| Type of iterator. Can only be used to iterate forward over component handles in a collection. | |
| typedef ComponentHandle | value_type |
| Value type. | |
| typedef size_t | difference_type |
| Difference type to calculate iterator distance. | |
| typedef ComponentHandle * | pointer |
| Pointer type. | |
| typedef ComponentHandle & | reference |
| Reference type. | |
Public Member Functions | |
| ComponentCollectionIterator (const ComponentCollectionBase &collection, size_t index) | |
| Creates a new iterator over the given collection with the given index. | |
| ComponentCollectionIterator (const ComponentCollectionIterator &other) | |
| Create a new iterator, copying the state of other. | |
| constexpr bool | operator== (const ComponentCollectionIterator &other) const |
| Comparison operator. If the current index of both iterators are equal the iterators are considered equal. | |
| ComponentCollectionIterator | operator++ () |
| Post increment operator. Moves the iterator to the next component handle in the collection. | |
| ComponentCollectionIterator & | operator++ (int) |
| Pre increment operator. Moves the iterator to the next component handle in the collection. | |
| const ComponentHandle & | operator* () |
| Dereference operator. Returns a reference to the component handle at the iterators current iterator index. | |
| const ComponentHandle & | operator* () const |
| Const dereference operator. Returns a const reference to the component handle at the current iterator index. | |
| const ComponentHandle * | operator-> () const |
| Pointer operator. Returns a pointer to the component handle at the current iterator index. | |
Iterator type for iterating over ComponentCollectionBase.
Definition at line 24 of file ComponentCollection.h.
| typedef size_t Cogs::ComponentModel::ComponentCollectionBase::ComponentCollectionIterator::difference_type |
Difference type to calculate iterator distance.
Definition at line 34 of file ComponentCollection.h.
| typedef std::forward_iterator_tag Cogs::ComponentModel::ComponentCollectionBase::ComponentCollectionIterator::iterator_category |
Type of iterator. Can only be used to iterate forward over component handles in a collection.
Definition at line 28 of file ComponentCollection.h.
| typedef ComponentHandle* Cogs::ComponentModel::ComponentCollectionBase::ComponentCollectionIterator::pointer |
Pointer type.
Definition at line 37 of file ComponentCollection.h.
| typedef ComponentHandle& Cogs::ComponentModel::ComponentCollectionBase::ComponentCollectionIterator::reference |
Reference type.
Definition at line 40 of file ComponentCollection.h.
| typedef ComponentHandle Cogs::ComponentModel::ComponentCollectionBase::ComponentCollectionIterator::value_type |
Value type.
Definition at line 31 of file ComponentCollection.h.
|
inline |
Creates a new iterator over the given collection with the given index.
Definition at line 43 of file ComponentCollection.h.
|
inline |
Create a new iterator, copying the state of other.
Definition at line 46 of file ComponentCollection.h.
|
inline |
Dereference operator. Returns a reference to the component handle at the iterators current iterator index.
Definition at line 58 of file ComponentCollection.h.
|
inline |
Const dereference operator. Returns a const reference to the component handle at the current iterator index.
Definition at line 61 of file ComponentCollection.h.
|
inline |
Post increment operator. Moves the iterator to the next component handle in the collection.
Definition at line 52 of file ComponentCollection.h.
|
inline |
Pre increment operator. Moves the iterator to the next component handle in the collection.
Definition at line 55 of file ComponentCollection.h.
|
inline |
Pointer operator. Returns a pointer to the component handle at the current iterator index.
Definition at line 64 of file ComponentCollection.h.
|
inlineconstexpr |
Comparison operator. If the current index of both iterators are equal the iterators are considered equal.
Definition at line 49 of file ComponentCollection.h.