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

#include <View.hpp>

Collaboration diagram for ecs::View< EntityType, ComponentTypes >:
Collaboration graph

Public Types

typedef SparseSet< EntityType > entitySet
 
typedef IndexOf< ComponentTypes... > index
 
typedef std::array< std::shared_ptr< entitySet >, sizeof...(ComponentTypes)> entitySetArray
 
typedef ViewIterator< EntityType, sizeof...(ComponentTypes)> iterator
 

Public Member Functions

 View (Manager< EntityType > &storage)
 
 View ()
 
 ~View ()
 
 View (const View &other)
 
 View (View &&other)
 
Viewoperator= (const View &other)
 
Viewoperator= (View &&other)
 
iterator begin ()
 
iterator end ()
 

Member Typedef Documentation

◆ entitySet

template<ValidEntity EntityType, typename... ComponentTypes>
typedef SparseSet<EntityType> ecs::View< EntityType, ComponentTypes >::entitySet

◆ entitySetArray

template<ValidEntity EntityType, typename... ComponentTypes>
typedef std::array<std::shared_ptr<entitySet>, sizeof... (ComponentTypes)> ecs::View< EntityType, ComponentTypes >::entitySetArray

◆ index

template<ValidEntity EntityType, typename... ComponentTypes>
typedef IndexOf<ComponentTypes...> ecs::View< EntityType, ComponentTypes >::index

◆ iterator

template<ValidEntity EntityType, typename... ComponentTypes>
typedef ViewIterator<EntityType, sizeof... (ComponentTypes)> ecs::View< EntityType, ComponentTypes >::iterator

Constructor & Destructor Documentation

◆ View() [1/4]

template<ValidEntity EntityType, typename... ComponentTypes>
ecs::View< EntityType, ComponentTypes >::View ( Manager< EntityType > &  storage)
inline

◆ View() [2/4]

template<ValidEntity EntityType, typename... ComponentTypes>
ecs::View< EntityType, ComponentTypes >::View ( )
inline

◆ ~View()

template<ValidEntity EntityType, typename... ComponentTypes>
ecs::View< EntityType, ComponentTypes >::~View ( )
inline

◆ View() [3/4]

template<ValidEntity EntityType, typename... ComponentTypes>
ecs::View< EntityType, ComponentTypes >::View ( const View< EntityType, ComponentTypes > &  other)
inline

◆ View() [4/4]

template<ValidEntity EntityType, typename... ComponentTypes>
ecs::View< EntityType, ComponentTypes >::View ( View< EntityType, ComponentTypes > &&  other)
inline

Member Function Documentation

◆ begin()

template<ValidEntity EntityType, typename... ComponentTypes>
iterator ecs::View< EntityType, ComponentTypes >::begin ( )
inline

◆ end()

template<ValidEntity EntityType, typename... ComponentTypes>
iterator ecs::View< EntityType, ComponentTypes >::end ( )
inline

◆ operator=() [1/2]

template<ValidEntity EntityType, typename... ComponentTypes>
View & ecs::View< EntityType, ComponentTypes >::operator= ( const View< EntityType, ComponentTypes > &  other)
inline

◆ operator=() [2/2]

template<ValidEntity EntityType, typename... ComponentTypes>
View & ecs::View< EntityType, ComponentTypes >::operator= ( View< EntityType, ComponentTypes > &&  other)
inline

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