Xmipp  v3.23.11-Nereus
Static Public Member Functions | List of all members
testing::DefaultValue< T & > Class Template Reference

#include <gmock-actions.h>

Static Public Member Functions

static void Set (T &x)
 
static void Clear ()
 
static bool IsSet ()
 
static bool Exists ()
 
static T & Get ()
 

Detailed Description

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

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

Member Function Documentation

◆ Clear()

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

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

658 { address_ = nullptr; }

◆ Exists()

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

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

◆ Get()

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

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

672  {
673  return address_ == nullptr ? internal::BuiltInDefaultValue<T&>::Get()
674  : *address_;
675  }

◆ IsSet()

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

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

661 { return address_ != nullptr; }

◆ Set()

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

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

653  { // NOLINT
654  address_ = &x;
655  }
doublereal * x

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