Apache Log4cxx  Version 1.5.0
Loading...
Searching...
No Matches
log4cxx::helpers::SingletonHolder< T > Class Template Reference

Wraps any singleton object so it can be added to APRInitializer. More...

#include <singletonholder.h>

Inheritance diagram for log4cxx::helpers::SingletonHolder< T >:
log4cxx::helpers::Object

Public Member Functions

const helpers::ClassgetClass () const override
 SingletonHolder ()
template<typename Arg0, typename ... Args, typename = typename std::enable_if<!std::is_same<typename std::decay<Arg0>::type, SingletonHolder>::value>::type>
 SingletonHolder (Arg0 arg0, Args &&... args)
 SingletonHolder (const SingletonHolder &)=delete
 SingletonHolder (SingletonHolder &&)=delete
T & value ()
Public Member Functions inherited from log4cxx::helpers::Object
virtual ~Object ()
virtual bool instanceof (const Class &clazz) const =0
virtual const void * cast (const Class &clazz) const =0

Detailed Description

template<class T>
class log4cxx::helpers::SingletonHolder< T >

Wraps any singleton object so it can be added to APRInitializer.

Constructor & Destructor Documentation

◆ SingletonHolder() [1/4]

template<class T>
log4cxx::helpers::SingletonHolder< T >::SingletonHolder ( )
inline

◆ SingletonHolder() [2/4]

template<class T>
template<typename Arg0, typename ... Args, typename = typename std::enable_if<!std::is_same<typename std::decay<Arg0>::type, SingletonHolder>::value>::type>
log4cxx::helpers::SingletonHolder< T >::SingletonHolder ( Arg0 arg0,
Args &&... args )
inline

◆ SingletonHolder() [3/4]

template<class T>
log4cxx::helpers::SingletonHolder< T >::SingletonHolder ( const SingletonHolder< T > & )
delete

◆ SingletonHolder() [4/4]

template<class T>
log4cxx::helpers::SingletonHolder< T >::SingletonHolder ( SingletonHolder< T > && )
delete

Member Function Documentation

◆ getClass()

template<class T>
const helpers::Class & log4cxx::helpers::SingletonHolder< T >::getClass ( ) const
inlineoverridevirtual

◆ value()

template<class T>
T & log4cxx::helpers::SingletonHolder< T >::value ( )
inline

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