Classes | Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
testing::Action< F > Class Template Reference

#include <gmock-actions.h>

Classes

struct  ActionAdapter
 
struct  IgnoreArgs
 

Public Types

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

Public Member Functions

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

Private Types

template<typename G >
using IsCompatibleFunctor = std::is_constructible< std::function< F >, G >
 

Private Member Functions

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

Private Attributes

::std::function< F > fun_
 
internal::linked_ptr< ActionInterface< F > > impl_
 

Friends

template<typename G >
class Action
 
template<typename F1 , typename F2 >
class internal::ActionAdaptor
 

Detailed Description

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

Definition at line 338 of file bloaty/third_party/googletest/googlemock/include/gmock/gmock-actions.h.

Member Typedef Documentation

◆ ArgumentTuple [1/5]

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

◆ ArgumentTuple [2/5]

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

◆ ArgumentTuple [3/5]

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

◆ ArgumentTuple [4/5]

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

◆ ArgumentTuple [5/5]

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

Definition at line 1334 of file cares/cares/test/gmock-1.8.0/gmock/gmock.h.

◆ IsCompatibleFunctor

template<typename F >
template<typename G >
using testing::Action< F >::IsCompatibleFunctor = std::is_constructible<std::function<F>, G>
private

◆ Result [1/5]

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

◆ Result [2/5]

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

◆ Result [3/5]

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

◆ Result [4/5]

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

◆ Result [5/5]

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

Definition at line 1333 of file cares/cares/test/gmock-1.8.0/gmock/gmock.h.

Constructor & Destructor Documentation

◆ Action() [1/21]

template<typename G >
Action
inline

◆ Action() [2/21]

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

◆ Action() [3/21]

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

◆ Action() [4/21]

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

◆ Action() [5/21]

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

◆ Action() [6/21]

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

◆ Action() [7/21]

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

◆ Action() [8/21]

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

◆ Action() [9/21]

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

Definition at line 1338 of file cares/cares/test/gmock-1.8.0/gmock/gmock.h.

◆ Action() [10/21]

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

Definition at line 1342 of file cares/cares/test/gmock-1.8.0/gmock/gmock.h.

◆ Action() [11/21]

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

Definition at line 1345 of file cares/cares/test/gmock-1.8.0/gmock/gmock.h.

◆ Action() [12/21]

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

◆ Action() [13/21]

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

◆ Action() [14/21]

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

◆ Action() [15/21]

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

◆ Action() [16/21]

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

◆ Action() [17/21]

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

◆ Action() [18/21]

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

◆ Action() [19/21]

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

◆ Action() [20/21]

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

◆ Action() [21/21]

template<typename F >
template<typename From >
testing::Action< F >::Action ( const Action< From > &  from)

Definition at line 2030 of file cares/cares/test/gmock-1.8.0/gmock/gmock.h.

Member Function Documentation

◆ Init() [1/2]

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

◆ Init() [2/2]

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

◆ IsDoDefault() [1/5]

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

◆ IsDoDefault() [2/5]

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

◆ IsDoDefault() [3/5]

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

◆ IsDoDefault() [4/5]

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

◆ IsDoDefault() [5/5]

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

Definition at line 1355 of file cares/cares/test/gmock-1.8.0/gmock/gmock.h.

◆ Perform() [1/5]

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

◆ Perform() [2/5]

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

◆ Perform() [3/5]

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

◆ Perform() [4/5]

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

◆ Perform() [5/5]

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

Definition at line 1363 of file cares/cares/test/gmock-1.8.0/gmock/gmock.h.

Friends And Related Function Documentation

◆ Action

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

◆ internal::ActionAdaptor

template<typename F >
template<typename F1 , typename F2 >
friend class internal::ActionAdaptor
friend

Definition at line 1376 of file cares/cares/test/gmock-1.8.0/gmock/gmock.h.

Member Data Documentation

◆ fun_

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

◆ impl_

template<typename F >
internal::linked_ptr<ActionInterface<F> > testing::Action< F >::impl_
private

Definition at line 1378 of file cares/cares/test/gmock-1.8.0/gmock/gmock.h.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:44