Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
testing::Action< F > Class Template Reference

#include <gmock-actions.h>

Inheritance diagram for testing::Action< F >:
Inheritance graph
[legend]

Classes

struct  ActionAdapter
 
struct  IgnoreArgs
 

Public Types

typedef internal::Function< F >
::Result 
Result
 
typedef internal::Function< F >
::ArgumentTuple 
ArgumentTuple
 

Public Member Functions

 Action ()
 
template<typename G , typename IsCompatibleFunctor = ::std::is_constructible<::std::function<F>, G>, typename IsNoArgsFunctor = ::std::is_constructible<::std::function<Result()>, G>, typename = typename ::std::enable_if<internal::disjunction< IsCompatibleFunctor, IsNoArgsFunctor>::value>::type>
 Action (G &&fun)
 
 Action (ActionInterface< F > *impl)
 
template<typename Func >
 Action (const Action< Func > &action)
 
bool IsDoDefault () const
 
Result Perform (ArgumentTuple args) const
 

Private Member Functions

template<typename G >
void Init (G &&g,::std::true_type)
 
template<typename G >
void Init (G &&g,::std::false_type)
 

Private Attributes

::std::function< Ffun_
 

Friends

template<typename G >
class Action
 

Detailed Description

template<typename F>
class testing::Action< F >

Definition at line 438 of file gmock-actions.h.

Member Typedef Documentation

template<typename F>
typedef internal::Function<F>::Result testing::Action< F >::Result

Definition at line 453 of file gmock-actions.h.

template<typename F>
typedef internal::Function<F>::ArgumentTuple testing::Action< F >::ArgumentTuple

Definition at line 454 of file gmock-actions.h.

Constructor & Destructor Documentation

template<typename F>
testing::Action< F >::Action ( )
inline

Definition at line 458 of file gmock-actions.h.

template<typename F>
template<typename G , typename IsCompatibleFunctor = ::std::is_constructible<::std::function<F>, G>, typename IsNoArgsFunctor = ::std::is_constructible<::std::function<Result()>, G>, typename = typename ::std::enable_if<internal::disjunction< IsCompatibleFunctor, IsNoArgsFunctor>::value>::type>
testing::Action< F >::Action ( G &&  fun)
inline

Definition at line 470 of file gmock-actions.h.

template<typename F>
testing::Action< F >::Action ( ActionInterface< F > *  impl)
inlineexplicit

Definition at line 475 of file gmock-actions.h.

template<typename F>
template<typename Func >
testing::Action< F >::Action ( const Action< Func > &  action)
inlineexplicit

Definition at line 482 of file gmock-actions.h.

Member Function Documentation

template<typename F>
bool testing::Action< F >::IsDoDefault ( ) const
inline

Definition at line 485 of file gmock-actions.h.

template<typename F>
Result testing::Action< F >::Perform ( ArgumentTuple  args) const
inline

Definition at line 493 of file gmock-actions.h.

template<typename F>
template<typename G >
void testing::Action< F >::Init ( G &&  g,
::std::true_type   
)
inlineprivate

Definition at line 505 of file gmock-actions.h.

template<typename F>
template<typename G >
void testing::Action< F >::Init ( G &&  g,
::std::false_type   
)
inlineprivate

Definition at line 510 of file gmock-actions.h.

Friends And Related Function Documentation

template<typename F>
template<typename G >
friend class Action
friend

Definition at line 502 of file gmock-actions.h.

Member Data Documentation

template<typename F>
::std::function<F> testing::Action< F >::fun_
private

Definition at line 525 of file gmock-actions.h.


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