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

#include <Base.h>

Public Types

typedef Result(Class::* MemberPtr) () const
 

Public Member Functions

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

Private Attributes

MemberPtr member_
 

Detailed Description

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

Definition at line 139 of file Base.h.

Member Typedef Documentation

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

Definition at line 141 of file Base.h.

Constructor & Destructor Documentation

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

Definition at line 147 of file Base.h.

147 : 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::ConstMemberFunction< Class, Result >::operator() ( const Class &  x) const
inline

Definition at line 149 of file Base.h.

149  {
150  return (x.*member_)();
151  }
Definition: InvokeTest.cpp:58
template<class Class, class Result>
Result folly::gen::ConstMemberFunction< Class, Result >::operator() ( const Class *  x) const
inline

Definition at line 153 of file Base.h.

153  {
154  return (x->*member_)();
155  }
Definition: InvokeTest.cpp:58

Member Data Documentation

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

Definition at line 144 of file Base.h.


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