reference

This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.

of::utils::Singleton< Derived > Class Template Referenceabstract

#include <ofSingleton.hpp>

Static Public Member Functions

template<typename... Args>
static void construct (Args &&... args)
 
static Derived * instance ()
 
static void destruct ()
 

Protected Member Functions

 Singleton ()=default
 
 Singleton (const Singleton &)=delete
 
 Singleton (Singleton &&) noexcept=delete
 
Singletonoperator= (const Singleton &)=delete
 
Singletonoperator= (Singleton &&) noexcept=delete
 
virtual ~Singleton ()=default
 

Constructor & Destructor Documentation

◆ Singleton() [1/3]

template<typename Derived >
of::utils::Singleton< Derived >::Singleton ( )
protecteddefault

◆ Singleton() [2/3]

template<typename Derived >
of::utils::Singleton< Derived >::Singleton ( const Singleton< Derived > &  )
protecteddelete

◆ Singleton() [3/3]

template<typename Derived >
of::utils::Singleton< Derived >::Singleton ( Singleton< Derived > &&  )
protecteddeletenoexcept

◆ ~Singleton()

template<typename Derived >
virtual of::utils::Singleton< Derived >::~Singleton ( )
protectedvirtualdefault

Member Function Documentation

◆ construct()

template<typename Derived >
template<typename... Args>
static void of::utils::Singleton< Derived >::construct ( Args &&...  args)
inlinestatic

◆ destruct()

template<typename Derived >
static void of::utils::Singleton< Derived >::destruct ( )
inlinestatic

◆ instance()

template<typename Derived >
static Derived * of::utils::Singleton< Derived >::instance ( )
inlinestatic

◆ operator=() [1/2]

template<typename Derived >
Singleton & of::utils::Singleton< Derived >::operator= ( const Singleton< Derived > &  )
protecteddelete

◆ operator=() [2/2]

template<typename Derived >
Singleton & of::utils::Singleton< Derived >::operator= ( Singleton< Derived > &&  )
protecteddeletenoexcept

The documentation for this class was generated from the following file: