proxygen
folly::gen::detail::SingleReference< Value > Class Template Reference

#include <Base-inl.h>

Inheritance diagram for folly::gen::detail::SingleReference< Value >:
folly::gen::GenImpl< Value &, SingleReference< Value > > folly::gen::FBounded< Self >

Public Member Functions

 SingleReference (Value &ref)
 
template<class Handler >
bool apply (Handler &&handler) const
 
template<class Body >
void foreach (Body &&body) const
 
- Public Member Functions inherited from folly::gen::GenImpl< Value &, SingleReference< Value > >
bool apply (Handler &&handler) const
 
void foreach (Body &&body) const
 
- Public Member Functions inherited from folly::gen::FBounded< Self >
const Self & self () const
 
Self & self ()
 

Static Public Attributes

static constexpr bool infinite = false
 
- Static Public Attributes inherited from folly::gen::GenImpl< Value &, SingleReference< Value > >
static constexpr bool infinite
 

Private Attributes

Value * ptr_
 

Additional Inherited Members

- Public Types inherited from folly::gen::GenImpl< Value &, SingleReference< Value > >
typedef Value & ValueType
 
typedef std::decay< Value & >::type StorageType
 
- Protected Member Functions inherited from folly::gen::GenImpl< Value &, SingleReference< Value > >
 GenImpl ()=default
 
 GenImpl (GenImpl &&)=default
 
 GenImpl (const GenImpl &)=default
 
GenImploperator= (GenImpl &&)=default
 
GenImploperator= (const GenImpl &)=default
 

Detailed Description

template<class Value>
class folly::gen::detail::SingleReference< Value >

Definition at line 450 of file Base-inl.h.

Constructor & Destructor Documentation

template<class Value >
folly::gen::detail::SingleReference< Value >::SingleReference ( Value &  ref)
inlineexplicit

Definition at line 457 of file Base-inl.h.

457 : ptr_(&ref) {}

Member Function Documentation

template<class Value >
template<class Handler >
bool folly::gen::detail::SingleReference< Value >::apply ( Handler &&  handler) const
inline

Definition at line 460 of file Base-inl.h.

References handler().

460  {
461  return handler(*ptr_);
462  }
void handler(int, siginfo_t *, void *)
template<class Value >
template<class Body >
void folly::gen::detail::SingleReference< Value >::foreach ( Body &&  body) const
inline

Definition at line 465 of file Base-inl.h.

465  {
466  body(*ptr_);
467  }

Member Data Documentation

template<class Value >
constexpr bool folly::gen::detail::SingleReference< Value >::infinite = false
static

Definition at line 470 of file Base-inl.h.

template<class Value >
Value* folly::gen::detail::SingleReference< Value >::ptr_
private

Definition at line 453 of file Base-inl.h.


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