Iterator type for iterating over ComponentCollectionBase.
More...
#include <ComponentCollection.h>
Iterator type for iterating over ComponentCollectionBase.
◆ difference_type
Difference type to calculate iterator distance.
◆ iterator_category
Type of iterator. Can only be used to iterate forward over component handles in a collection.
◆ pointer
◆ reference
◆ value_type
◆ ComponentCollectionIterator() [1/2]
Cogs::ComponentModel::ComponentCollectionBase::ComponentCollectionIterator::ComponentCollectionIterator |
( |
const ComponentCollectionBase & |
collection, |
|
|
size_t |
index |
|
) |
| |
|
inline |
Creates a new iterator over the given collection with the given index.
◆ ComponentCollectionIterator() [2/2]
Cogs::ComponentModel::ComponentCollectionBase::ComponentCollectionIterator::ComponentCollectionIterator |
( |
const ComponentCollectionIterator & |
other | ) |
|
|
inline |
Create a new iterator, copying the state of other.
◆ operator*() [1/2]
const ComponentHandle & Cogs::ComponentModel::ComponentCollectionBase::ComponentCollectionIterator::operator* |
( |
| ) |
|
|
inline |
Dereference operator. Returns a reference to the component handle at the iterators current iterator index.
◆ operator*() [2/2]
const ComponentHandle & Cogs::ComponentModel::ComponentCollectionBase::ComponentCollectionIterator::operator* |
( |
| ) |
const |
|
inline |
Const dereference operator. Returns a const reference to the component handle at the current iterator index.
◆ operator++() [1/2]
Post increment operator. Moves the iterator to the next component handle in the collection.
◆ operator++() [2/2]
Pre increment operator. Moves the iterator to the next component handle in the collection.
◆ operator->()
const ComponentHandle * Cogs::ComponentModel::ComponentCollectionBase::ComponentCollectionIterator::operator-> |
( |
| ) |
const |
|
inline |
Pointer operator. Returns a pointer to the component handle at the current iterator index.
◆ operator==()
constexpr bool Cogs::ComponentModel::ComponentCollectionBase::ComponentCollectionIterator::operator== |
( |
const ComponentCollectionIterator & |
other | ) |
const |
|
inlineconstexpr |
Comparison operator. If the current index of both iterators are equal the iterators are considered equal.
The documentation for this class was generated from the following file: