Electroneum
Loading...
Searching...
No Matches
testing::DefaultValue< T & > Class Template Reference

#include <gmock-actions.h>

Public Types

typedef T(* FactoryFunction) ()

Static Public Member Functions

static void Set (T &x)
static void Clear ()
static bool IsSet ()
static bool Exists ()
static TGet ()
static void SetFactory (FactoryFunction factory)

Detailed Description

template<typename T>
class testing::DefaultValue< T & >

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

Member Typedef Documentation

◆ FactoryFunction

typedef T(* testing::DefaultValue< T >::FactoryFunction) ()

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

Member Function Documentation

◆ Clear()

template<typename T>
void testing::DefaultValue< T & >::Clear ( )
inlinestatic

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

283 {
284 address_ = NULL;
285 }

◆ Exists()

template<typename T>
bool testing::DefaultValue< T & >::Exists ( )
inlinestatic

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

Here is the call graph for this function:

◆ Get()

template<typename T>
T & testing::DefaultValue< T & >::Get ( )
inlinestatic

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

299 {
300 return address_ == NULL ?
302 }
Here is the call graph for this function:

◆ IsSet()

template<typename T>
bool testing::DefaultValue< T & >::IsSet ( )
inlinestatic

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

288{ return address_ != NULL; }
Here is the caller graph for this function:

◆ Set()

template<typename T>
void testing::DefaultValue< T & >::Set ( T & x)
inlinestatic

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

278 { // NOLINT
279 address_ = &x;
280 }

◆ SetFactory()

void testing::DefaultValue< T >::SetFactory ( FactoryFunction factory)
inlinestatic

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

213 {
214 delete producer_;
215 producer_ = new FactoryValueProducer(factory);
216 }

The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-actions.h