VOX
A little voxel engine
Loading...
Searching...
No Matches
ecs::ViewIterator< EntityType, pool_size > Class Template Reference

#include <View.hpp>

Collaboration diagram for ecs::ViewIterator< EntityType, pool_size >:
Collaboration graph

Public Types

typedef SparseSet< EntityType > entitySet
 
typedef entitySet::iterator entityIterator
 
typedef std::shared_ptr< entitySetSparseSetPtr
 
typedef std::array< SparseSetPtr, pool_size > SparseSetArray
 

Public Member Functions

 ViewIterator (SparseSetArray &sparseSets, SparseSetPtr leadSet, entityIterator leadIter=entityIterator())
 
 ~ViewIterator ()
 
 ViewIterator (const ViewIterator &other)=default
 
 ViewIterator (ViewIterator &&other)=default
 
ViewIteratoroperator= (const ViewIterator &other)=default
 
ViewIteratoroperator= (ViewIterator &&other)=default
 
ViewIteratoroperator++ ()
 
ViewIterator operator++ (int)
 
ViewIteratoroperator-- ()
 
ViewIterator operator-- (int)
 
bool operator== (const ViewIterator &other) const
 
bool operator!= (const ViewIterator &other) const
 
EntityType operator* ()
 

Member Typedef Documentation

◆ entityIterator

template<ValidEntity EntityType, size_t pool_size>
typedef entitySet::iterator ecs::ViewIterator< EntityType, pool_size >::entityIterator

◆ entitySet

template<ValidEntity EntityType, size_t pool_size>
typedef SparseSet<EntityType> ecs::ViewIterator< EntityType, pool_size >::entitySet

◆ SparseSetArray

template<ValidEntity EntityType, size_t pool_size>
typedef std::array<SparseSetPtr, pool_size> ecs::ViewIterator< EntityType, pool_size >::SparseSetArray

◆ SparseSetPtr

template<ValidEntity EntityType, size_t pool_size>
typedef std::shared_ptr<entitySet> ecs::ViewIterator< EntityType, pool_size >::SparseSetPtr

Constructor & Destructor Documentation

◆ ViewIterator() [1/3]

template<ValidEntity EntityType, size_t pool_size>
ecs::ViewIterator< EntityType, pool_size >::ViewIterator ( SparseSetArray sparseSets,
SparseSetPtr  leadSet,
entityIterator  leadIter = entityIterator() 
)
inline

◆ ~ViewIterator()

template<ValidEntity EntityType, size_t pool_size>
ecs::ViewIterator< EntityType, pool_size >::~ViewIterator ( )
inline

◆ ViewIterator() [2/3]

template<ValidEntity EntityType, size_t pool_size>
ecs::ViewIterator< EntityType, pool_size >::ViewIterator ( const ViewIterator< EntityType, pool_size > &  other)
default

◆ ViewIterator() [3/3]

template<ValidEntity EntityType, size_t pool_size>
ecs::ViewIterator< EntityType, pool_size >::ViewIterator ( ViewIterator< EntityType, pool_size > &&  other)
default

Member Function Documentation

◆ operator!=()

template<ValidEntity EntityType, size_t pool_size>
bool ecs::ViewIterator< EntityType, pool_size >::operator!= ( const ViewIterator< EntityType, pool_size > &  other) const
inline

◆ operator*()

template<ValidEntity EntityType, size_t pool_size>
EntityType ecs::ViewIterator< EntityType, pool_size >::operator* ( )
inline

◆ operator++() [1/2]

template<ValidEntity EntityType, size_t pool_size>
ViewIterator & ecs::ViewIterator< EntityType, pool_size >::operator++ ( )
inline

◆ operator++() [2/2]

template<ValidEntity EntityType, size_t pool_size>
ViewIterator ecs::ViewIterator< EntityType, pool_size >::operator++ ( int  )
inline

◆ operator--() [1/2]

template<ValidEntity EntityType, size_t pool_size>
ViewIterator & ecs::ViewIterator< EntityType, pool_size >::operator-- ( )
inline

◆ operator--() [2/2]

template<ValidEntity EntityType, size_t pool_size>
ViewIterator ecs::ViewIterator< EntityType, pool_size >::operator-- ( int  )
inline

◆ operator=() [1/2]

template<ValidEntity EntityType, size_t pool_size>
ViewIterator & ecs::ViewIterator< EntityType, pool_size >::operator= ( const ViewIterator< EntityType, pool_size > &  other)
default

◆ operator=() [2/2]

template<ValidEntity EntityType, size_t pool_size>
ViewIterator & ecs::ViewIterator< EntityType, pool_size >::operator= ( ViewIterator< EntityType, pool_size > &&  other)
default

◆ operator==()

template<ValidEntity EntityType, size_t pool_size>
bool ecs::ViewIterator< EntityType, pool_size >::operator== ( const ViewIterator< EntityType, pool_size > &  other) const
inline

The documentation for this class was generated from the following files: