proxygen
folly::LeakySingleton< T, Tag >::Entry Struct Reference

Public Member Functions

 Entry ()
 
 Entry (const Entry &)=delete
 
Entryoperator= (const Entry &)=delete
 

Public Attributes

std::atomic< Statestate {State::NotRegistered}
 
Tptr {nullptr}
 
CreateFunc createFunc
 
std::mutex mutex
 
detail::TypeDescriptor type_ {typeid(T), typeid(Tag)}
 
std::list< T * > leakedPtrs
 

Detailed Description

template<typename T, typename Tag = detail::DefaultTag>
struct folly::LeakySingleton< T, Tag >::Entry

Definition at line 735 of file Singleton.h.

Constructor & Destructor Documentation

template<typename T , typename Tag = detail::DefaultTag>
folly::LeakySingleton< T, Tag >::Entry::Entry ( )
inline

Definition at line 736 of file Singleton.h.

References folly::detail::TypeDescriptor::operator=().

736 {}
template<typename T , typename Tag = detail::DefaultTag>
folly::LeakySingleton< T, Tag >::Entry::Entry ( const Entry )
delete

Member Function Documentation

template<typename T , typename Tag = detail::DefaultTag>
Entry& folly::LeakySingleton< T, Tag >::Entry::operator= ( const Entry )
delete

Member Data Documentation

template<typename T , typename Tag = detail::DefaultTag>
CreateFunc folly::LeakySingleton< T, Tag >::Entry::createFunc

Definition at line 742 of file Singleton.h.

template<typename T , typename Tag = detail::DefaultTag>
std::list<T*> folly::LeakySingleton< T, Tag >::Entry::leakedPtrs

Definition at line 745 of file Singleton.h.

template<typename T , typename Tag = detail::DefaultTag>
std::mutex folly::LeakySingleton< T, Tag >::Entry::mutex

Definition at line 743 of file Singleton.h.

template<typename T , typename Tag = detail::DefaultTag>
T* folly::LeakySingleton< T, Tag >::Entry::ptr {nullptr}

Definition at line 741 of file Singleton.h.

template<typename T , typename Tag = detail::DefaultTag>
std::atomic<State> folly::LeakySingleton< T, Tag >::Entry::state {State::NotRegistered}

Definition at line 740 of file Singleton.h.

template<typename T , typename Tag = detail::DefaultTag>
detail::TypeDescriptor folly::LeakySingleton< T, Tag >::Entry::type_ {typeid(T), typeid(Tag)}

Definition at line 744 of file Singleton.h.


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