proxygen
folly::SingletonThreadLocal< T, Tag, Make, TLTag >::Node Struct Reference
Inheritance diagram for folly::SingletonThreadLocal< T, Tag, Make, TLTag >::Node:

Public Member Functions

 Node (Wrapper *&cache_, bool &stale_)
 
 ~Node ()
 
void clear ()
 

Public Attributes

Wrapper *& cache
 
bool & stale
 

Detailed Description

template<typename T, typename Tag = detail::DefaultTag, typename Make = detail::DefaultMake<T>, typename TLTag = _t<std::conditional< std::is_same<Tag, detail::DefaultTag>::value, void, Tag>>>
struct folly::SingletonThreadLocal< T, Tag, Make, TLTag >::Node

Definition at line 75 of file SingletonThreadLocal.h.

Constructor & Destructor Documentation

template<typename T, typename Tag = detail::DefaultTag, typename Make = detail::DefaultMake<T>, typename TLTag = _t<std::conditional< std::is_same<Tag, detail::DefaultTag>::value, void, Tag>>>
folly::SingletonThreadLocal< T, Tag, Make, TLTag >::Node::Node ( Wrapper *&  cache_,
bool &  stale_ 
)
inline

Definition at line 79 of file SingletonThreadLocal.h.

References folly::SingletonThreadLocal< T, Tag, Make, TLTag >::getWrapper().

79  : cache(cache_), stale(stale_) {
80  auto& wrapper = getWrapper();
81  wrapper.caches.push_front(*this);
82  cache = &wrapper;
83  }
static FOLLY_NOINLINE Wrapper & getWrapper()
template<typename T, typename Tag = detail::DefaultTag, typename Make = detail::DefaultMake<T>, typename TLTag = _t<std::conditional< std::is_same<Tag, detail::DefaultTag>::value, void, Tag>>>
folly::SingletonThreadLocal< T, Tag, Make, TLTag >::Node::~Node ( )
inline

Member Function Documentation

template<typename T, typename Tag = detail::DefaultTag, typename Make = detail::DefaultMake<T>, typename TLTag = _t<std::conditional< std::is_same<Tag, detail::DefaultTag>::value, void, Tag>>>
void folly::SingletonThreadLocal< T, Tag, Make, TLTag >::Node::clear ( )
inline

Member Data Documentation

template<typename T, typename Tag = detail::DefaultTag, typename Make = detail::DefaultMake<T>, typename TLTag = _t<std::conditional< std::is_same<Tag, detail::DefaultTag>::value, void, Tag>>>
Wrapper*& folly::SingletonThreadLocal< T, Tag, Make, TLTag >::Node::cache
template<typename T, typename Tag = detail::DefaultTag, typename Make = detail::DefaultMake<T>, typename TLTag = _t<std::conditional< std::is_same<Tag, detail::DefaultTag>::value, void, Tag>>>
bool& folly::SingletonThreadLocal< T, Tag, Make, TLTag >::Node::stale

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