Euphoria
|
eu::core::ecs::GenericComponentArray< T > Struct Template Reference
#include <ecs.h>
Inheritance diagram for eu::core::ecs::GenericComponentArray< T >:
Public Member Functions | |
GenericComponentArray () | |
void | add (EntityHandle entity, T &&component) |
T & | get (EntityHandle entity) |
T * | get_or_null (EntityHandle entity) |
bool | has_value_for_index (std::size_t index) const |
void | remove (EntityHandle entity) override |
bool | has (EntityHandle entity) const override |
Public Member Functions inherited from eu::core::ecs::ComponentArrayBase | |
ComponentArrayBase (std::string_view n) | |
virtual | ~ComponentArrayBase ()=default |
ComponentArrayBase (const ComponentArrayBase &)=delete | |
ComponentArrayBase (ComponentArrayBase &&)=delete | |
ComponentArrayBase & | operator= (const ComponentArrayBase &)=delete |
ComponentArrayBase & | operator= (ComponentArrayBase &&)=delete |
Public Attributes | |
std::vector< std::optional< T > > | components |
Public Attributes inherited from eu::core::ecs::ComponentArrayBase | |
std::string_view | name |
Detailed Description
template<typename T>
struct eu::core::ecs::GenericComponentArray< T >
Constructor & Destructor Documentation
◆ GenericComponentArray()
template<typename T >
|
inline |
Member Function Documentation
◆ add()
template<typename T >
|
inline |
◆ get()
template<typename T >
|
inline |
◆ get_or_null()
template<typename T >
|
inline |
◆ has()
template<typename T >
|
inlineoverridevirtual |
Implements eu::core::ecs::ComponentArrayBase.
◆ has_value_for_index()
template<typename T >
|
inline |
◆ remove()
template<typename T >
|
inlineoverridevirtual |
Implements eu::core::ecs::ComponentArrayBase.
Member Data Documentation
◆ components
template<typename T >
std::vector<std::optional<T> > eu::core::ecs::GenericComponentArray< T >::components |
The documentation for this struct was generated from the following file:
- libs/core/src/core/ecs.h