![]() |
Shkyera Engine
Easy to use, game engine for Python
|
#include <SparseSet.hpp>
Public Types | |
| using | iterator_category = std::forward_iterator_tag |
| using | reference = std::pair< Entity, std::conditional_t< IsConst, const Component &, Component & > > |
Public Member Functions | |
| Iterator (typename std::conditional_t< IsConst, const std::vector< Entity > *, std::vector< Entity > * > entities, typename std::conditional_t< IsConst, const std::vector< Component > *, std::vector< Component > * > components, size_t index) | |
| reference | operator* () const |
| Iterator & | operator++ () |
| Iterator | operator++ (int) |
| bool | operator== (const Iterator &other) const |
| bool | operator!= (const Iterator &other) const |
Private Attributes | |
| std::conditional_t< IsConst, const std::vector< Entity > *, std::vector< Entity > * > | _entities |
| std::conditional_t< IsConst, const std::vector< Component > *, std::vector< Component > * > | _components |
| size_t | _index |
| using shkyera::SparseSet< Component >::Iterator< IsConst >::iterator_category = std::forward_iterator_tag |
| using shkyera::SparseSet< Component >::Iterator< IsConst >::reference = std::pair<Entity, std::conditional_t<IsConst, const Component&, Component&> > |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |