SCIRun  5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Macros
Singleton.h File Reference
#include <boost/thread/mutex.hpp>
#include <boost/noncopyable.hpp>
#include <Core/Utils/share.h>

Go to the source code of this file.

Classes

class  Singleton< T >
 NOTE: This singleton model requires that the project is linked statically. More...
 

Namespaces

 SCIRun
 STL datatypes needed.
 
 SCIRun::Core
 

Macros

#define CORE_SINGLETON(name)
 
#define CORE_SINGLETON_IMPLEMENTATION(name)   SCIRun::Core::Singleton<name> name::instance_;
 

Macro Definition Documentation

#define CORE_SINGLETON (   name)
Value:
public:\
friend class SCIRun::Core::Singleton<name>;\
static name& Instance() { return instance_.instance(); }\
static SCIRun::Core::Singleton<name> instance_;\
#define private
Definition: Thread_none.cc:52
NOTE: This singleton model requires that the project is linked statically.
Definition: Singleton.h:49
const char * name[]
Definition: BoostGraphExampleTests.cc:87
#define CORE_SINGLETON_IMPLEMENTATION (   name)    SCIRun::Core::Singleton<name> name::instance_;