proxygen
testing::internal::ReturnRefOfCopyAction< T > Class Template Reference

#include <gmock-actions.h>

Classes

class  Impl
 

Public Member Functions

 ReturnRefOfCopyAction (const T &value)
 
template<typename F >
 operator Action< F > () const
 
 ReturnRefOfCopyAction (const T &value)
 
template<typename F >
 operator Action< F > () const
 
 ReturnRefOfCopyAction (const T &value)
 
template<typename F >
 operator Action< F > () const
 

Private Member Functions

 GTEST_DISALLOW_ASSIGN_ (ReturnRefOfCopyAction)
 
 GTEST_DISALLOW_ASSIGN_ (ReturnRefOfCopyAction)
 
 GTEST_DISALLOW_ASSIGN_ (ReturnRefOfCopyAction)
 

Private Attributes

const T value_
 

Detailed Description

template<typename T>
class testing::internal::ReturnRefOfCopyAction< T >

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

Constructor & Destructor Documentation

template<typename T >
testing::internal::ReturnRefOfCopyAction< T >::ReturnRefOfCopyAction ( const T value)
inlineexplicit

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

705 : value_(value) {} // NOLINT
static const char *const value
Definition: Conv.cpp:50
template<typename T >
testing::internal::ReturnRefOfCopyAction< T >::ReturnRefOfCopyAction ( const T value)
inlineexplicit

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

705 : value_(value) {} // NOLINT
static const char *const value
Definition: Conv.cpp:50
template<typename T >
testing::internal::ReturnRefOfCopyAction< T >::ReturnRefOfCopyAction ( const T value)
inlineexplicit

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

705 : value_(value) {} // NOLINT
static const char *const value
Definition: Conv.cpp:50

Member Function Documentation

template<typename T >
testing::internal::ReturnRefOfCopyAction< T >::GTEST_DISALLOW_ASSIGN_ ( ReturnRefOfCopyAction< T )
private
template<typename T >
testing::internal::ReturnRefOfCopyAction< T >::GTEST_DISALLOW_ASSIGN_ ( ReturnRefOfCopyAction< T )
private
template<typename T >
testing::internal::ReturnRefOfCopyAction< T >::GTEST_DISALLOW_ASSIGN_ ( ReturnRefOfCopyAction< T )
private
template<typename T >
template<typename F >
testing::internal::ReturnRefOfCopyAction< T >::operator Action< F > ( ) const
inline

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

References GTEST_COMPILE_ASSERT_.

710  {
711  typedef typename Function<F>::Result Result;
712  // Asserts that the function return type is a reference. This
713  // catches the user error of using ReturnRefOfCopy(x) when Return(x)
714  // should be used, and generates some helpful error message.
717  use_Return_instead_of_ReturnRefOfCopy_to_return_a_value);
718  return Action<F>(new Impl<F>(value_));
719  }
A polymorphic function wrapper that is not copyable and does not require the wrapped function to be c...
#define GTEST_COMPILE_ASSERT_(expr, msg)
Definition: gtest-port.h:1032
template<typename T >
template<typename F >
testing::internal::ReturnRefOfCopyAction< T >::operator Action< F > ( ) const
inline

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

References GTEST_COMPILE_ASSERT_.

710  {
711  typedef typename Function<F>::Result Result;
712  // Asserts that the function return type is a reference. This
713  // catches the user error of using ReturnRefOfCopy(x) when Return(x)
714  // should be used, and generates some helpful error message.
717  use_Return_instead_of_ReturnRefOfCopy_to_return_a_value);
718  return Action<F>(new Impl<F>(value_));
719  }
A polymorphic function wrapper that is not copyable and does not require the wrapped function to be c...
#define GTEST_COMPILE_ASSERT_(expr, msg)
Definition: gtest-port.h:1032
template<typename T >
template<typename F >
testing::internal::ReturnRefOfCopyAction< T >::operator Action< F > ( ) const
inline

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

References GTEST_COMPILE_ASSERT_.

710  {
711  typedef typename Function<F>::Result Result;
712  // Asserts that the function return type is a reference. This
713  // catches the user error of using ReturnRefOfCopy(x) when Return(x)
714  // should be used, and generates some helpful error message.
717  use_Return_instead_of_ReturnRefOfCopy_to_return_a_value);
718  return Action<F>(new Impl<F>(value_));
719  }
A polymorphic function wrapper that is not copyable and does not require the wrapped function to be c...
#define GTEST_COMPILE_ASSERT_(expr, msg)
Definition: gtest-port.h:1032

Member Data Documentation

template<typename T >
const T testing::internal::ReturnRefOfCopyAction< T >::value_
private

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


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