Lodestone.Conversion
Loading...
Searching...
No Matches
projects
Libraries
Conversion
include
Lodestone.Conversion
registry
SingletonRegistry.h
Go to the documentation of this file.
1
//
2
// Created by DexrnZacAttack on 2/15/26 using zPc-i2.
3
//
4
#ifndef LODESTONE_SINGLETONREGISTRY_H
5
#define LODESTONE_SINGLETONREGISTRY_H
6
#include <
Lodestone.Common/registry/Identifier.h
>
7
#include "
Lodestone.Conversion/registry/SimpleRegistry.h
"
8
9
namespace
lodestone::conversion::registry
{
10
template
<const common::registry::Identifier *Identifier,
typename
Type,
typename
Stored = std::unique_ptr<const Type>>
11
class
LODESTONE_API
SingletonRegistry
:
public
SimpleRegistry
<Identifier, Type, Stored> {
12
public
:
13
static
LODESTONE_API
SingletonRegistry
&
getInstance
();
14
15
SingletonRegistry
(
const
SingletonRegistry
&) =
delete
;
16
SingletonRegistry
&
operator=
(
const
SingletonRegistry
&) =
delete
;
17
SingletonRegistry
(
SingletonRegistry
&&) =
delete
;
18
SingletonRegistry
&
operator=
(
SingletonRegistry
&&) =
delete
;
19
20
protected
:
21
SingletonRegistry
() =
default
;
22
~SingletonRegistry
() =
default
;
23
};
24
}
25
26
#endif
// LODESTONE_SINGLETONREGISTRY_H
LODESTONE_API
#define LODESTONE_API
Identifier.h
SimpleRegistry.h
lodestone::conversion::registry::SimpleRegistry::SimpleRegistry
SimpleRegistry()=default
lodestone::conversion::registry::SingletonRegistry::SingletonRegistry
SingletonRegistry(const SingletonRegistry &)=delete
lodestone::conversion::registry::SingletonRegistry::getInstance
static SingletonRegistry & getInstance()
Definition
Registries.cpp:15
lodestone::conversion::registry::SingletonRegistry::SingletonRegistry
SingletonRegistry()=default
lodestone::conversion::registry::SingletonRegistry::~SingletonRegistry
~SingletonRegistry()=default
lodestone::conversion::registry::SingletonRegistry::operator=
SingletonRegistry & operator=(SingletonRegistry &&)=delete
lodestone::conversion::registry::SingletonRegistry::operator=
SingletonRegistry & operator=(const SingletonRegistry &)=delete
lodestone::conversion::registry::SingletonRegistry::SingletonRegistry
SingletonRegistry(SingletonRegistry &&)=delete
lodestone::conversion::registry
Definition
Registries.cpp:14
Generated by
1.15.0