|
CeresEngine 0.2.0
A game development framework
|
An iterator that can be used to "drive" a generator. More...
#include <CeresEngine/Mesh/Generator/Iterator.hpp>
Public Types | |
| using | value_type = typename GeneratedType< Generator >::Type |
| using | difference_type = std::ptrdiff_t |
| using | pointer = value_type * |
| using | reference = value_type & |
Public Member Functions | |
| Iterator () noexcept | |
| Creates a dummy end iterator. | |
| Iterator (Generator &generator) noexcept | |
| Iterator to the given generator. | |
| Iterator & | operator++ () |
| Advance the iterator. | |
| const Iterator::value_type & | operator* () const |
| Get reference to the current generated value. | |
| const Iterator::value_type * | operator-> () const |
| Get pointer to the current generated value. | |
| bool | operator== (const Iterator &that) const noexcept |
| Iterators are equal if both are out of range or both iterate the same generator. | |
| bool | operator!= (const Iterator &that) const noexcept |
Private Attributes | |
| Generator * | mGenerator |
| GeneratedType< Generator >::Type | value_ |
An iterator that can be used to "drive" a generator.
Note that iterator mutates the generator.
| using CeresEngine::MeshGenerator::Iterator< Generator >::difference_type = std::ptrdiff_t |
| using CeresEngine::MeshGenerator::Iterator< Generator >::pointer = value_type* |
| using CeresEngine::MeshGenerator::Iterator< Generator >::reference = value_type& |
| using CeresEngine::MeshGenerator::Iterator< Generator >::value_type = typename GeneratedType<Generator>::Type |
|
inlinenoexcept |
Creates a dummy end iterator.
|
inlinenoexcept |
Iterator to the given generator.
|
inlinenoexcept |
|
inline |
Get reference to the current generated value.
| std::out_of_range | If the iterator is out of range. |
|
inline |
Advance the iterator.
Might make the iterator "out of range".
| std::out_of_range | If the iterator is out of range. |
|
inline |
Get pointer to the current generated value.
| std::out_of_range | If the iterator is out of range |
|
inlinenoexcept |
Iterators are equal if both are out of range or both iterate the same generator.
|
private |
|
private |