Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
cereal::SpecValueStorage Struct Reference
Inheritance diagram for cereal::SpecValueStorage:

Public Types

using SpecValueTag = void
using KeyIterable
using StorageType

Public Member Functions

KeyIterable keys () const
template<class T>
T const & getComponent (::std::string_view name) const
MCAPI::entt::meta_any getComponent (::std::string_view name)
MCAPI::entt::meta_any getComponent (::std::string_view name) const
MCAPI bool eraseComponent (::std::string_view name)
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
inherited
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
inherited
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() [1/2]

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

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.

◆ getComponent() [2/2]

MCAPI::entt::meta_any cereal::ComponentStorage::getComponent ( ::std::string_view name)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ operator==()

MCAPI bool cereal::ComponentStorage::operator== ( ::cereal::ComponentStorage const & other) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $dtor()

MCAPI void cereal::ComponentStorage::$dtor ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

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