LeviLamina
Loading...
Searching...
No Matches
cereal::ComponentStorage Class Reference
Inheritance diagram for cereal::ComponentStorage:

Public Types

using KeyIterable
using StorageType

Public Member Functions

KeyIterable keys () const
template<class T>
T const & getComponent (::std::string_view name) const
MCAPI bool eraseComponent (::std::string_view name)
MCAPI::entt::meta_any getComponent (::std::string_view name)
MCAPI::entt::meta_any getComponent (::std::string_view name) const
MCAPI bool operator== (::cereal::ComponentStorage const &other) const
MCAPI void $dtor ()

Public Attributes

::ll::TypedStorage< 8, 48, ::brstd::flat_map< ::std::string, ::entt::meta_any, ::std::less< void >, ::std::vector<::std::string >, ::std::vector<::entt::meta_any > > > mComponents

Member Typedef Documentation

◆ KeyIterable

using cereal::ComponentStorage::KeyIterable
Initial value:
::entt::iterable_adaptor<
::std::_Vector_const_iterator<::std::_Vector_val<::std::_Simple_types<::std::string>>>,
::std::_Vector_const_iterator<::std::_Vector_val<::std::_Simple_types<::std::string>>>>

◆ StorageType

using cereal::ComponentStorage::StorageType
Initial value:
::std::string,
::entt::meta_any,
::std::less<void>,
::std::vector<::std::string>,
::std::vector<::entt::meta_any>>
Definition flat_map.h:15

Member Function Documentation

◆ getComponent()

template<class T>
T const & cereal::ComponentStorage::getComponent ( ::std::string_view name) const
inlinenodiscard

The reference points into the stored component, so it stays valid as long as the storage does; the meta_any returned by the non-template overload is only a handle.


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