proxygen
folly::detail::SingletonHolderBase Class Referenceabstract

#include <Singleton.h>

Inheritance diagram for folly::detail::SingletonHolderBase:
folly::detail::SingletonHolder< T >

Public Member Functions

 SingletonHolderBase (TypeDescriptor typeDesc)
 
virtual ~SingletonHolderBase ()=default
 
TypeDescriptor type () const
 
virtual bool hasLiveInstance ()=0
 
virtual void createInstance ()=0
 
virtual bool creationStarted ()=0
 
virtual void preDestroyInstance (ReadMostlyMainPtrDeleter<> &)=0
 
virtual void destroyInstance ()=0
 

Private Attributes

TypeDescriptor type_
 

Detailed Description

Definition at line 280 of file Singleton.h.

Constructor & Destructor Documentation

folly::detail::SingletonHolderBase::SingletonHolderBase ( TypeDescriptor  typeDesc)
inlineexplicit

Definition at line 282 of file Singleton.h.

282 : type_(typeDesc) {}
virtual folly::detail::SingletonHolderBase::~SingletonHolderBase ( )
virtualdefault

Member Function Documentation

virtual void folly::detail::SingletonHolderBase::createInstance ( )
pure virtual
virtual bool folly::detail::SingletonHolderBase::creationStarted ( )
pure virtual
virtual void folly::detail::SingletonHolderBase::destroyInstance ( )
pure virtual
virtual bool folly::detail::SingletonHolderBase::hasLiveInstance ( )
pure virtual
virtual void folly::detail::SingletonHolderBase::preDestroyInstance ( ReadMostlyMainPtrDeleter<> &  )
pure virtual
TypeDescriptor folly::detail::SingletonHolderBase::type ( ) const
inline

Member Data Documentation

TypeDescriptor folly::detail::SingletonHolderBase::type_
private

Definition at line 295 of file Singleton.h.


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