proxygen
folly::gen::VirtualGen< Value >::WrapperImpl< Wrapped > Class Template Reference
Inheritance diagram for folly::gen::VirtualGen< Value >::WrapperImpl< Wrapped >:
folly::gen::VirtualGen< Value >::WrapperBase

Public Member Functions

 WrapperImpl (Wrapped wrapped)
 
bool apply (const std::function< bool(Value)> &handler) const override
 
void foreach (const std::function< void(Value)> &body) const override
 
std::unique_ptr< const WrapperBaseclone () const override
 
- Public Member Functions inherited from folly::gen::VirtualGen< Value >::WrapperBase
virtual ~WrapperBase () noexcept
 

Private Attributes

Wrapped wrapped_
 

Detailed Description

template<class Value>
template<class Wrapped>
class folly::gen::VirtualGen< Value >::WrapperImpl< Wrapped >

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

Constructor & Destructor Documentation

template<class Value>
template<class Wrapped >
folly::gen::VirtualGen< Value >::WrapperImpl< Wrapped >::WrapperImpl ( Wrapped  wrapped)
inlineexplicit

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

2499 : wrapped_(std::move(wrapped)) {}
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567

Member Function Documentation

template<class Value>
template<class Wrapped >
bool folly::gen::VirtualGen< Value >::WrapperImpl< Wrapped >::apply ( const std::function< bool(Value)> &  handler) const
inlineoverridevirtual

Implements folly::gen::VirtualGen< Value >::WrapperBase.

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

References handler().

2501  {
2502  return wrapped_.apply(handler);
2503  }
void handler(int, siginfo_t *, void *)
template<class Value>
template<class Wrapped >
std::unique_ptr<const WrapperBase> folly::gen::VirtualGen< Value >::WrapperImpl< Wrapped >::clone ( ) const
inlineoverridevirtual

Implements folly::gen::VirtualGen< Value >::WrapperBase.

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

2509  {
2510  return std::unique_ptr<const WrapperBase>(new WrapperImpl(wrapped_));
2511  }
template<class Value>
template<class Wrapped >
void folly::gen::VirtualGen< Value >::WrapperImpl< Wrapped >::foreach ( const std::function< void(Value)> &  body) const
inlineoverridevirtual

Implements folly::gen::VirtualGen< Value >::WrapperBase.

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

2505  {
2506  wrapped_.foreach(body);
2507  }

Member Data Documentation

template<class Value>
template<class Wrapped >
Wrapped folly::gen::VirtualGen< Value >::WrapperImpl< Wrapped >::wrapped_
private

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


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