proxygen
folly::gen::MemberFunction< Class, Result > Class Template Reference

#include <Base.h>

Public Types

typedef Result(Class::* MemberPtr) ()
 

Public Member Functions

 MemberFunction (MemberPtr member)
 
Result operator() (Class &&x) const
 
Result operator() (Class &x) const
 
Result operator() (Class *x) const
 

Private Attributes

MemberPtr member_
 

Detailed Description

template<class Class, class Result>
class folly::gen::MemberFunction< Class, Result >

Definition at line 115 of file Base.h.

Member Typedef Documentation

template<class Class, class Result>
typedef Result(Class::* folly::gen::MemberFunction< Class, Result >::MemberPtr) ()

Definition at line 117 of file Base.h.

Constructor & Destructor Documentation

template<class Class, class Result>
folly::gen::MemberFunction< Class, Result >::MemberFunction ( MemberPtr  member)
inlineexplicit

Definition at line 123 of file Base.h.

123 : member_(member) {}
std::enable_if< ExprIsConst< Constness >::value, Map >::type member(Return(Class::*member)() const)
Definition: Base.h:605

Member Function Documentation

template<class Class, class Result>
Result folly::gen::MemberFunction< Class, Result >::operator() ( Class &&  x) const
inline

Definition at line 125 of file Base.h.

125  {
126  return (x.*member_)();
127  }
Definition: InvokeTest.cpp:58
template<class Class, class Result>
Result folly::gen::MemberFunction< Class, Result >::operator() ( Class &  x) const
inline

Definition at line 129 of file Base.h.

129  {
130  return (x.*member_)();
131  }
Definition: InvokeTest.cpp:58
template<class Class, class Result>
Result folly::gen::MemberFunction< Class, Result >::operator() ( Class *  x) const
inline

Definition at line 133 of file Base.h.

133  {
134  return (x->*member_)();
135  }
Definition: InvokeTest.cpp:58

Member Data Documentation

template<class Class, class Result>
MemberPtr folly::gen::MemberFunction< Class, Result >::member_
private

Definition at line 120 of file Base.h.


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