proxygen
|
#include <Singleton.h>
Classes | |
struct | Entry |
Public Types | |
using | CreateFunc = std::function< T *()> |
Public Member Functions | |
LeakySingleton () | |
LeakySingleton (CreateFunc createFunc) | |
Static Public Member Functions | |
static T & | get () |
static void | make_mock (std::nullptr_t=nullptr) |
static void | make_mock (CreateFunc createFunc) |
Private Types | |
enum | State { State::NotRegistered, State::Dead, State::Living } |
Static Private Member Functions | |
static Entry & | entryInstance () |
static T & | instance () |
static void | createInstance () |
Definition at line 695 of file Singleton.h.
using folly::LeakySingleton< T, Tag >::CreateFunc = std::function<T*()> |
Definition at line 697 of file Singleton.h.
|
strongprivate |
Enumerator | |
---|---|
NotRegistered | |
Dead | |
Living |
Definition at line 733 of file Singleton.h.
|
inline |
|
inlineexplicit |
Definition at line 701 of file Singleton.h.
References folly::detail::singletonWarnLeakyDoubleRegistrationAndAbort().
|
inlinestaticprivate |
Definition at line 762 of file Singleton.h.
References folly::detail::singletonWarnLeakyInstantiatingNotRegisteredAndAbort().
|
inlinestaticprivate |
Definition at line 748 of file Singleton.h.
|
inlinestatic |
Definition at line 710 of file Singleton.h.
|
inlinestaticprivate |
|
inlinestatic |
Definition at line 714 of file Singleton.h.
References folly::T.
|
inlinestatic |
Definition at line 718 of file Singleton.h.
References folly::exchange(), folly::detail::singletonThrowNullCreator(), and folly::T.