BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ISingleton< T > Class Template Reference

Base class for singletons. More...

Static Public Member Functions

static T & instance ()
 

Protected Member Functions

 ISingleton ()=default
 
 ~ISingleton ()=default
 

Private Member Functions

 ISingleton (const ISingleton &)=delete
 
 ISingleton (ISingleton &&)=delete
 
ISingletonoperator= (const ISingleton &)=delete
 
ISingletonoperator= (ISingleton &&)=delete
 

Detailed Description

template<class T>
class ISingleton< T >

Base class for singletons.

Definition at line 21 of file ISingleton.h.

Constructor & Destructor Documentation

◆ ISingleton() [1/3]

template<class T >
ISingleton< T >::ISingleton ( )
protecteddefault

◆ ~ISingleton()

template<class T >
ISingleton< T >::~ISingleton ( )
protecteddefault

◆ ISingleton() [2/3]

template<class T >
ISingleton< T >::ISingleton ( const ISingleton< T > &  )
privatedelete

◆ ISingleton() [3/3]

template<class T >
ISingleton< T >::ISingleton ( ISingleton< T > &&  )
privatedelete

Member Function Documentation

◆ instance()

template<class T >
static T& ISingleton< T >::instance ( )
inlinestatic

Definition at line 23 of file ISingleton.h.

24  {
25  static T m_instance;
26  return m_instance;
27  }

◆ operator=() [1/2]

template<class T >
ISingleton& ISingleton< T >::operator= ( const ISingleton< T > &  )
privatedelete

◆ operator=() [2/2]

template<class T >
ISingleton& ISingleton< T >::operator= ( ISingleton< T > &&  )
privatedelete

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