igor::iModule< T > Class Template Reference

#include <iModule.h>

Static Public Member Functions

static IGOR_INLINE T & getInstance ()
 
static IGOR_INLINE bool isInstantiated ()
 
static void create ()
 
static void destroy ()
 

Protected Member Functions

 iModule ()=default
 
virtual ~iModule ()=default
 

Detailed Description

template<typename T>
class igor::iModule< T >

module class

make sure if you derive from this class that your module will be created during igor::startup() and destroyed during igor::shutdown()

Constructor & Destructor Documentation

◆ iModule()

template<typename T >
igor::iModule< T >::iModule ( )
protecteddefault

does nothing

◆ ~iModule()

template<typename T >
virtual igor::iModule< T >::~iModule ( )
protectedvirtualdefault

does nothing

Member Function Documentation

◆ create()

template<typename T >
static void igor::iModule< T >::create ( )
inlinestatic

creates the single instance of a module

only call this if you know what you are doing

◆ destroy()

template<typename T >
static void igor::iModule< T >::destroy ( )
inlinestatic

destroys the single instance of a module

only call this if you know what you are doing

◆ getInstance()

template<typename T >
static IGOR_INLINE T & igor::iModule< T >::getInstance ( )
inlinestatic
Returns
the instance of this module

◆ isInstantiated()

template<typename T >
static IGOR_INLINE bool igor::iModule< T >::isInstantiated ( )
inlinestatic

returns true if the instance of this is currently instantiated


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