Lodestone.Conversion
Loading...
Searching...
No Matches
lodestone::conversion::registry::SingletonRegistry< Identifier, Type, Stored > Class Template Reference

#include <SingletonRegistry.h>

Inheritance diagram for lodestone::conversion::registry::SingletonRegistry< Identifier, Type, Stored >:
Collaboration diagram for lodestone::conversion::registry::SingletonRegistry< Identifier, Type, Stored >:

Public Member Functions

 SingletonRegistry (const SingletonRegistry &)=delete
SingletonRegistry & operator= (const SingletonRegistry &)=delete
 SingletonRegistry (SingletonRegistry &&)=delete
SingletonRegistry & operator= (SingletonRegistry &&)=delete
Public Member Functions inherited from lodestone::conversion::registry::SimpleRegistry< Identifier, Type, Stored >
 SimpleRegistry (SimpleRegistry &rhs)=delete
void put (const common::registry::Identifier &id, Stored io)
const Type * get (common::registry::Identifier id) const
template<typename R>
requires std::is_base_of_v<Type, R>
const R * getAs (common::registry::Identifier id) const
template<typename R>
requires std::is_base_of_v<Type, R> && std::is_base_of_v<common::registry::IIdentifiable, R>
const R * getOfType () const

Static Public Member Functions

static SingletonRegistry & getInstance ()
Static Public Member Functions inherited from lodestone::common::registry::Identifiable< Identifier >
static constexpr const Identifier * getIdentifier ()

Protected Member Functions

 SingletonRegistry ()=default
 ~SingletonRegistry ()=default
Protected Member Functions inherited from lodestone::conversion::registry::SimpleRegistry< Identifier, Type, Stored >
 SimpleRegistry ()=default

Additional Inherited Members

Public Attributes inherited from lodestone::conversion::registry::SimpleRegistry< Identifier, Type, Stored >
common::event::Event< common::registry::Identifier > objectRegisteredEvent

Constructor & Destructor Documentation

◆ SingletonRegistry() [1/3]

template<const common::registry::Identifier * Identifier, typename Type, typename Stored = std::unique_ptr<const Type>>
lodestone::conversion::registry::SingletonRegistry< Identifier, Type, Stored >::SingletonRegistry ( const SingletonRegistry< Identifier, Type, Stored > & )
delete

◆ SingletonRegistry() [2/3]

template<const common::registry::Identifier * Identifier, typename Type, typename Stored = std::unique_ptr<const Type>>
lodestone::conversion::registry::SingletonRegistry< Identifier, Type, Stored >::SingletonRegistry ( SingletonRegistry< Identifier, Type, Stored > && )
delete

◆ SingletonRegistry() [3/3]

template<const common::registry::Identifier * Identifier, typename Type, typename Stored = std::unique_ptr<const Type>>
lodestone::conversion::registry::SingletonRegistry< Identifier, Type, Stored >::SingletonRegistry ( )
protecteddefault

◆ ~SingletonRegistry()

template<const common::registry::Identifier * Identifier, typename Type, typename Stored = std::unique_ptr<const Type>>
lodestone::conversion::registry::SingletonRegistry< Identifier, Type, Stored >::~SingletonRegistry ( )
protecteddefault

Member Function Documentation

◆ getInstance()

template<const common::registry::Identifier * Identifier, typename Type, typename Stored>
SingletonRegistry< Identifier, Type, Stored > & lodestone::conversion::registry::SingletonRegistry< Identifier, Type, Stored >::getInstance ( )
static

◆ operator=() [1/2]

template<const common::registry::Identifier * Identifier, typename Type, typename Stored = std::unique_ptr<const Type>>
SingletonRegistry & lodestone::conversion::registry::SingletonRegistry< Identifier, Type, Stored >::operator= ( const SingletonRegistry< Identifier, Type, Stored > & )
delete

◆ operator=() [2/2]

template<const common::registry::Identifier * Identifier, typename Type, typename Stored = std::unique_ptr<const Type>>
SingletonRegistry & lodestone::conversion::registry::SingletonRegistry< Identifier, Type, Stored >::operator= ( SingletonRegistry< Identifier, Type, Stored > && )
delete

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