![]() |
neoGFX
Cross-platform C++ app/game engine
|
#include <component.hpp>
Public Types | |
typedef base_type::data_type | data_type |
typedef base_type::data_meta_type | data_meta_type |
typedef base_type::value_type | value_type |
typedef base_type::component_data_t | component_data_t |
typedef component_data_t::mapped_type | mapped_type |
![]() | |
typedef detail::crack_component_data< shared< ecs_data_type_t< Data > > >::data_type | data_type |
typedef data_type::meta | data_meta_type |
typedef detail::crack_component_data< shared< ecs_data_type_t< Data > > >::value_type | value_type |
typedef detail::crack_component_data< shared< ecs_data_type_t< Data > > >::container_type | component_data_t |
Public Member Functions | |
static_shared_component (game::i_ecs &aEcs) | |
const mapped_type & | operator[] (typename component_data_t::size_type aIndex) const |
mapped_type & | operator[] (typename component_data_t::size_type aIndex) |
const mapped_type & | operator[] (const std::string &aName) const |
mapped_type & | operator[] (const std::string &aName) |
mapped_type & | populate (const std::string &aName, const mapped_type &aData) |
mapped_type & | populate (const std::string &aName, mapped_type &&aData) |
void * | populate (const std::string &aName, const void *aComponentData, std::size_t aComponentDataSize) override |
![]() | |
static_component_base (game::i_ecs &aEcs) | |
static_component_base (const self_type &aOther) | |
self_type & | operator= (const self_type &aRhs) |
game::i_ecs & | ecs () const override |
const component_id & | id () const override |
std::recursive_mutex & | mutex () const |
bool | is_data_optional () const override |
const i_string & | name () const override |
uint32_t | field_count () const override |
component_data_field_type | field_type (uint32_t aFieldIndex) const override |
neolib::uuid | field_type_id (uint32_t aFieldIndex) const override |
const i_string & | field_name (uint32_t aFieldIndex) const override |
const component_data_t & | component_data () const |
component_data_t & | component_data () |
const value_type & | operator[] (typename component_data_t::size_type aIndex) const |
value_type & | operator[] (typename component_data_t::size_type aIndex) |
![]() | |
template<typename ComponentData > | |
void * | populate (const std::string &aName, ComponentData &&aComponentData) |
![]() | |
virtual | ~i_component_base ()=default |
Definition at line 464 of file component.hpp.
typedef base_type::component_data_t neogfx::game::static_shared_component< Data >::component_data_t |
Definition at line 475 of file component.hpp.
typedef base_type::data_meta_type neogfx::game::static_shared_component< Data >::data_meta_type |
Definition at line 473 of file component.hpp.
typedef base_type::data_type neogfx::game::static_shared_component< Data >::data_type |
Definition at line 472 of file component.hpp.
typedef component_data_t::mapped_type neogfx::game::static_shared_component< Data >::mapped_type |
Definition at line 476 of file component.hpp.
typedef base_type::value_type neogfx::game::static_shared_component< Data >::value_type |
Definition at line 474 of file component.hpp.
|
inline |
Definition at line 478 of file component.hpp.
|
inline |
Definition at line 496 of file component.hpp.
|
inline |
Definition at line 500 of file component.hpp.
|
inline |
Definition at line 504 of file component.hpp.
|
inline |
Definition at line 508 of file component.hpp.
|
inline |
Definition at line 513 of file component.hpp.
|
inline |
Definition at line 521 of file component.hpp.
|
inlineoverridevirtual |
Implements neogfx::game::i_shared_component.
Definition at line 529 of file component.hpp.