Electroneum
testing::internal::CallableTraits< ResType(*)(ArgType)> Struct Template Reference

#include <gmock-matchers.h>

Public Types

typedef ResType ResultType
 
typedef ResType(* StorageType) (ArgType)
 

Static Public Member Functions

static void CheckIsValid (ResType(*f)(ArgType))
 
template<typename T >
static ResType Invoke (ResType(*f)(ArgType), T arg)
 

Detailed Description

template<typename ArgType, typename ResType>
struct testing::internal::CallableTraits< ResType(*)(ArgType)>

Definition at line 2320 of file gmock-matchers.h.

Member Typedef Documentation

◆ ResultType

template<typename ArgType , typename ResType >
typedef ResType testing::internal::CallableTraits< ResType(*)(ArgType)>::ResultType

Definition at line 2321 of file gmock-matchers.h.

◆ StorageType

template<typename ArgType , typename ResType >
typedef ResType(* testing::internal::CallableTraits< ResType(*)(ArgType)>::StorageType) (ArgType)

Definition at line 2322 of file gmock-matchers.h.

Member Function Documentation

◆ CheckIsValid()

template<typename ArgType , typename ResType >
static void testing::internal::CallableTraits< ResType(*)(ArgType)>::CheckIsValid ( ResType(*)(ArgType)  f)
inlinestatic

Definition at line 2324 of file gmock-matchers.h.

2324  {
2325  GTEST_CHECK_(f != NULL)
2326  << "NULL function pointer is passed into ResultOf().";
2327  }
#define GTEST_CHECK_(condition)
Definition: gtest-port.h:1295

◆ Invoke()

template<typename ArgType , typename ResType >
template<typename T >
static ResType testing::internal::CallableTraits< ResType(*)(ArgType)>::Invoke ( ResType(*)(ArgType)  f,
T  arg 
)
inlinestatic

Definition at line 2329 of file gmock-matchers.h.

2329  {
2330  return (*f)(arg);
2331  }

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