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

#include <Base-inl.h>

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

Public Member Functions

 SingleCopy (Value value)
 
template<class Handler >
bool apply (Handler &&handler) const
 
template<class Body >
void foreach (Body &&body) const
 
- Public Member Functions inherited from folly::gen::GenImpl< const Value &, SingleCopy< 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< const Value &, SingleCopy< Value > >
static constexpr bool infinite
 

Private Attributes

Value value_
 

Additional Inherited Members

- Public Types inherited from folly::gen::GenImpl< const Value &, SingleCopy< Value > >
typedef const Value & ValueType
 
typedef std::decay< const Value & >::type StorageType
 
- Protected Member Functions inherited from folly::gen::GenImpl< const Value &, SingleCopy< 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::SingleCopy< Value >

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

Constructor & Destructor Documentation

template<class Value >
folly::gen::detail::SingleCopy< Value >::SingleCopy ( Value  value)
inlineexplicit

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

481 : value_(std::forward<Value>(value)) {}
uint64_t value(const typename LockFreeRingBuffer< T, Atom >::Cursor &rbcursor)

Member Function Documentation

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

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

References handler().

484  {
485  return handler(value_);
486  }
void handler(int, siginfo_t *, void *)
template<class Value >
template<class Body >
void folly::gen::detail::SingleCopy< Value >::foreach ( Body &&  body) const
inline

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

489  {
490  body(value_);
491  }

Member Data Documentation

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

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

template<class Value >
Value folly::gen::detail::SingleCopy< Value >::value_
private

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


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