proxygen
folly::SynchronizedPtrLockedElement< LockHolder, Element > Struct Template Reference

#include <SynchronizedPtr.h>

Public Member Functions

 SynchronizedPtrLockedElement (LockHolder &&holder)
 
Element & operator* () const
 
Element * operator-> () const
 
 operator bool () const
 

Private Attributes

LockHolder holder_
 

Detailed Description

template<typename LockHolder, typename Element>
struct folly::SynchronizedPtrLockedElement< LockHolder, Element >

Definition at line 35 of file SynchronizedPtr.h.

Constructor & Destructor Documentation

template<typename LockHolder , typename Element >
folly::SynchronizedPtrLockedElement< LockHolder, Element >::SynchronizedPtrLockedElement ( LockHolder &&  holder)
inlineexplicit

Definition at line 36 of file SynchronizedPtr.h.

37  : holder_(std::move(holder)) {}
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567

Member Function Documentation

template<typename LockHolder , typename Element >
folly::SynchronizedPtrLockedElement< LockHolder, Element >::operator bool ( ) const
inlineexplicit

Definition at line 47 of file SynchronizedPtr.h.

47  {
48  return static_cast<bool>(*holder_);
49  }
template<typename LockHolder , typename Element >
Element& folly::SynchronizedPtrLockedElement< LockHolder, Element >::operator* ( ) const
inline
template<typename LockHolder , typename Element >
Element* folly::SynchronizedPtrLockedElement< LockHolder, Element >::operator-> ( ) const
inline

Definition at line 43 of file SynchronizedPtr.h.

References folly::SynchronizedPtrLockedElement< LockHolder, Element >::holder_.

43  {
44  return &**holder_;
45  }

Member Data Documentation

template<typename LockHolder , typename Element >
LockHolder folly::SynchronizedPtrLockedElement< LockHolder, Element >::holder_
private

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