Lodestone.Conversion
Loading...
Searching...
No Matches
Registries.h File Reference
Include dependency graph for Registries.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  lodestone
namespace  lodestone::conversion
namespace  lodestone::conversion::registry

Macros

#define LODESTONE_CREATE_REGISTRY_ALIAS(name, type...)
#define LODESTONE_IMPLEMENT_REGISTRY_ALIAS(type...)
#define LODESTONE_IMPLEMENT_REGISTRY_GET_INSTANCE()

Typedefs

using lodestone::conversion::registry::PlayerIORegistry = SingletonRegistry<&identifiers::PLAYER_IO_REGISTRY, const io::interfaces::IPlayerIO>
using lodestone::conversion::registry::LevelIORegistry = SingletonRegistry<&identifiers::LEVEL_IO_REGISTRY, const io::interfaces::ILevelIO>
using lodestone::conversion::registry::ChunkIORegistry = SingletonRegistry<&identifiers::CHUNK_IO_REGISTRY, const io::interfaces::IChunkIO>
using lodestone::conversion::registry::WorldIORegistry = SingletonRegistry<&identifiers::WORLD_IO_REGISTRY, const io::interfaces::IWorldIO>

Macro Definition Documentation

◆ LODESTONE_CREATE_REGISTRY_ALIAS

#define LODESTONE_CREATE_REGISTRY_ALIAS ( name,
type... )
Value:
extern template class type; \
using name = type
14#define LODESTONE_CREATE_REGISTRY_ALIAS(name, type...) \
15 extern template class type; \
16 using name = type

◆ LODESTONE_IMPLEMENT_REGISTRY_ALIAS

#define LODESTONE_IMPLEMENT_REGISTRY_ALIAS ( type...)
Value:
template class type;
18#define LODESTONE_IMPLEMENT_REGISTRY_ALIAS(type...) \
19 template class type;

◆ LODESTONE_IMPLEMENT_REGISTRY_GET_INSTANCE

#define LODESTONE_IMPLEMENT_REGISTRY_GET_INSTANCE ( )
Value:
template <const common::registry::Identifier *Identifier, typename Type, typename Stored> \
LODESTONE_API SingletonRegistry<Identifier, Type, Stored> &SingletonRegistry<Identifier, Type, Stored>::getInstance() { \
static SingletonRegistry s_instance; \
return s_instance; \
}
#define LODESTONE_API
21#define LODESTONE_IMPLEMENT_REGISTRY_GET_INSTANCE() \
22 template <const common::registry::Identifier *Identifier, typename Type, typename Stored> \
23 LODESTONE_API SingletonRegistry<Identifier, Type, Stored> &SingletonRegistry<Identifier, Type, Stored>::getInstance() { \
24 static SingletonRegistry s_instance; \
25 return s_instance; \
26 }