RavEngine
Loading...
Searching...
No Matches
RavEngine::World::PolymorphicIndirection Struct Reference
Collaboration diagram for RavEngine::World::PolymorphicIndirection:
[legend]

Classes

struct  elt
 

Public Member Functions

template<typename T >
void push ()
 
template<typename T >
void erase ()
 
bool empty () const
 
 PolymorphicIndirection (entity_t owner, World *world)
 
template<typename T , typename func_t >
void for_each (const func_t &f)
 
template<typename T >
auto GetAll ()
 
template<typename BaseIncludingArgument >
auto HandleFor (int idx)
 
auto begin ()
 
auto end ()
 
auto begin () const
 
auto end () const
 

Public Attributes

UnorderedVector< elt > elts
 
entity_t owner = {INVALID_ENTITY}
 
World * world = nullptr
 

Member Function Documentation

◆ for_each()

template<typename T , typename func_t >
void RavEngine::World::PolymorphicIndirection::for_each ( const func_t &  f)
inline

Because there are multiple, one cannot simply "get" here. Instead, pass a function to invoke with each requested result.


The documentation for this struct was generated from the following file: