Nebula
|
Provides helper macros to implement singleton objects:
Get a pointer to a singleton object using the static Instance() method:
Core::Server* coreServer = Core::Server::Instance();
(C) 2007 Radon Labs GmbH (C) 2013-2018 Individual contributors, see AUTHORS file
#include "core/types.h"
Go to the source code of this file.
Macros | |
#define | CORE_POSIXSINGLETON_H |
#define | __DeclareSingleton(type) |
#define | __DeclareInterfaceSingleton(type) |
#define | __ImplementSingleton(type) |
#define | __ImplementInterfaceSingleton(type) |
#define | __ConstructSingleton n_assert(0 == Singleton); Singleton = this; |
#define | __ConstructInterfaceSingleton n_assert(0 == Singleton); Singleton = this; |
#define | __DestructSingleton n_assert(Singleton); Singleton = 0; |
#define | __DestructInterfaceSingleton n_assert(Singleton); Singleton = 0; |
#define __DeclareInterfaceSingleton | ( | type | ) |
#define __DeclareSingleton | ( | type | ) |
#define __ImplementInterfaceSingleton | ( | type | ) |
#define __ImplementSingleton | ( | type | ) |
#define CORE_POSIXSINGLETON_H |