4#ifndef LODESTONE_SIMPLEREGISTRY_H
5#define LODESTONE_SIMPLEREGISTRY_H
19 template <const common::registry::Identifier *Identifier,
typename Type,
typename Stored = std::unique_ptr<const Type>>
33 requires std::is_base_of_v<Type, R>
37 requires std::is_base_of_v<Type, R>
38 && std::is_base_of_v<common::registry::IIdentifiable, R>
gtl::flat_hash_map< T... > map_t
const R * getOfType() const
Definition SimpleRegistry.h:40
void put(const common::registry::Identifier &id, Stored io)
Definition SimpleRegistry.h:9
common::event::Event< common::registry::Identifier > objectRegisteredEvent
Definition SimpleRegistry.h:42
const Type * get(common::registry::Identifier id) const
Definition SimpleRegistry.h:21
SimpleRegistry(SimpleRegistry &rhs)=delete
const R * getAs(common::registry::Identifier id) const
Definition SimpleRegistry.h:33
map_t< common::registry::Identifier, Stored > m_registry
Definition SimpleRegistry.h:46
Definition AbstractObjectIo.h:20
Definition Registries.cpp:14