ITK
5.2.0
Insight Toolkit
|
#include <itkSingleton.h>
Public Types | |
using | Self = SingletonIndex |
using | SingletonData = std::map< std::string, std::tuple< void *, std::function< void(void *)>, std::function< void(void)> >> |
Public Member Functions | |
template<typename T > | |
T * | GetGlobalInstance (const char *globalName) |
template<typename T > | |
bool | SetGlobalInstance (const char *globalName, T *global, std::function< void(void *)> func, std::function< void(void)> deleteFunc) |
SingletonData | m_GlobalObjects |
static Self * | m_Instance |
~SingletonIndex () | |
static Self * | GetInstance () |
static void | SetInstance (Self *instance) |
void * | GetGlobalInstancePrivate (const char *globalName) |
bool | SetGlobalInstancePrivate (const char *globalName, void *global, std::function< void(void *)> func, std::function< void(void)> deleteFunc) |
Implementation detail.
Definition at line 45 of file itkSingleton.h.
Standard class types.
Definition at line 49 of file itkSingleton.h.
using itk::SingletonIndex::SingletonData = std::map<std::string, std::tuple<void *, std::function<void(void *)>, std::function<void(void)> >> |
Definition at line 51 of file itkSingleton.h.
itk::SingletonIndex::~SingletonIndex | ( | ) |
The static GlobalSingleton. This is initialized to nullptr as the first stage of static initialization. It is then populated on the first call to itk::Singleton::Modified() but it can be overridden with SetGlobalSingleton().
|
inline |
Definition at line 57 of file itkSingleton.h.
Referenced by itk::Singleton().
|
private |
The static GlobalSingleton. This is initialized to nullptr as the first stage of static initialization. It is then populated on the first call to itk::Singleton::Modified() but it can be overridden with SetGlobalSingleton().
|
static |
Set/Get the pointer to GlobalSingleton. Note that SetGlobalSingleton is not concurrent thread safe.
Referenced by itk::Singleton().
|
inline |
Definition at line 69 of file itkSingleton.h.
Referenced by itk::Singleton().
|
private |
The static GlobalSingleton. This is initialized to nullptr as the first stage of static initialization. It is then populated on the first call to itk::Singleton::Modified() but it can be overridden with SetGlobalSingleton().
|
static |
The static GlobalSingleton. This is initialized to nullptr as the first stage of static initialization. It is then populated on the first call to itk::Singleton::Modified() but it can be overridden with SetGlobalSingleton().
|
private |
The static GlobalSingleton. This is initialized to nullptr as the first stage of static initialization. It is then populated on the first call to itk::Singleton::Modified() but it can be overridden with SetGlobalSingleton().
Definition at line 107 of file itkSingleton.h.
|
staticprivate |
The static GlobalSingleton. This is initialized to nullptr as the first stage of static initialization. It is then populated on the first call to itk::Singleton::Modified() but it can be overridden with SetGlobalSingleton().
Definition at line 108 of file itkSingleton.h.