proxygen
testing::DefaultValue< T > Class Template Reference

#include <gmock-actions.h>

Classes

class  FactoryValueProducer
 
class  FixedValueProducer
 
class  ValueProducer
 

Public Types

typedef T(* FactoryFunction) ()
 
typedef T(* FactoryFunction) ()
 
typedef T(* FactoryFunction) ()
 

Static Public Member Functions

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

Static Private Attributes

static ValueProducerproducer_ = NULL
 

Detailed Description

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

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

Member Typedef Documentation

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

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

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

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

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

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

Member Function Documentation

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

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

219  {
220  delete producer_;
221  producer_ = NULL;
222  }
static ValueProducer * producer_
template<typename T >
static void testing::DefaultValue< T >::Clear ( )
inlinestatic

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

219  {
220  delete producer_;
221  producer_ = NULL;
222  }
static ValueProducer * producer_
template<typename T >
static void testing::DefaultValue< T >::Clear ( )
inlinestatic

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

219  {
220  delete producer_;
221  producer_ = NULL;
222  }
static ValueProducer * producer_
template<typename T >
static bool testing::DefaultValue< T >::Exists ( )
inlinestatic
template<typename T >
static bool testing::DefaultValue< T >::Exists ( )
inlinestatic
template<typename T >
static bool testing::DefaultValue< T >::Exists ( )
inlinestatic
template<typename T >
static T testing::DefaultValue< T >::Get ( )
inlinestatic

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

References testing::internal::BuiltInDefaultValue< T >::Get().

236  {
237  return producer_ == NULL ?
239  }
static ValueProducer * producer_
template<typename T >
static T testing::DefaultValue< T >::Get ( )
inlinestatic

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

References testing::internal::BuiltInDefaultValue< T >::Get().

236  {
237  return producer_ == NULL ?
239  }
static ValueProducer * producer_
template<typename T >
static T testing::DefaultValue< T >::Get ( )
inlinestatic
template<typename T >
static bool testing::DefaultValue< T >::IsSet ( )
inlinestatic

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

225 { return producer_ != NULL; }
static ValueProducer * producer_
template<typename T >
static bool testing::DefaultValue< T >::IsSet ( )
inlinestatic

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

225 { return producer_ != NULL; }
static ValueProducer * producer_
template<typename T >
static bool testing::DefaultValue< T >::IsSet ( )
inlinestatic

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

225 { return producer_ != NULL; }
static ValueProducer * producer_
template<typename T >
static void testing::DefaultValue< T >::Set ( T  x)
inlinestatic

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

204  {
205  delete producer_;
206  producer_ = new FixedValueProducer(x);
207  }
Definition: InvokeTest.cpp:58
static ValueProducer * producer_
template<typename T >
static void testing::DefaultValue< T >::Set ( T  x)
inlinestatic

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

204  {
205  delete producer_;
206  producer_ = new FixedValueProducer(x);
207  }
Definition: InvokeTest.cpp:58
static ValueProducer * producer_
template<typename T >
static void testing::DefaultValue< T >::Set ( T  x)
inlinestatic

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

204  {
205  delete producer_;
206  producer_ = new FixedValueProducer(x);
207  }
Definition: InvokeTest.cpp:58
static ValueProducer * producer_
template<typename T >
static 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  }
static ValueProducer * producer_
template<typename T >
static 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  }
static ValueProducer * producer_
template<typename T >
static 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  }
static ValueProducer * producer_

Member Data Documentation

template<typename T >
DefaultValue< T >::ValueProducer * testing::DefaultValue< T >::producer_ = NULL
staticprivate

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


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