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

#include <gmock-actions.h>

Classes

class  Impl
 

Public Member Functions

 ReturnRefAction (T &ref)
 
template<typename F >
 operator Action< F > () const
 
 ReturnRefAction (T &ref)
 
template<typename F >
 operator Action< F > () const
 
 ReturnRefAction (T &ref)
 
template<typename F >
 operator Action< F > () const
 

Private Member Functions

 GTEST_DISALLOW_ASSIGN_ (ReturnRefAction)
 
 GTEST_DISALLOW_ASSIGN_ (ReturnRefAction)
 
 GTEST_DISALLOW_ASSIGN_ (ReturnRefAction)
 

Private Attributes

Tref_
 

Detailed Description

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

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

Constructor & Destructor Documentation

template<typename T >
testing::internal::ReturnRefAction< T >::ReturnRefAction ( T ref)
inlineexplicit

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

657 : ref_(ref) {} // NOLINT
template<typename T >
testing::internal::ReturnRefAction< T >::ReturnRefAction ( T ref)
inlineexplicit

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

657 : ref_(ref) {} // NOLINT
template<typename T >
testing::internal::ReturnRefAction< T >::ReturnRefAction ( T ref)
inlineexplicit

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

657 : ref_(ref) {} // NOLINT

Member Function Documentation

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

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

References GTEST_COMPILE_ASSERT_.

662  {
663  typedef typename Function<F>::Result Result;
664  // Asserts that the function return type is a reference. This
665  // catches the user error of using ReturnRef(x) when Return(x)
666  // should be used, and generates some helpful error message.
668  use_Return_instead_of_ReturnRef_to_return_a_value);
669  return Action<F>(new Impl<F>(ref_));
670  }
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::ReturnRefAction< T >::operator Action< F > ( ) const
inline

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

References GTEST_COMPILE_ASSERT_.

662  {
663  typedef typename Function<F>::Result Result;
664  // Asserts that the function return type is a reference. This
665  // catches the user error of using ReturnRef(x) when Return(x)
666  // should be used, and generates some helpful error message.
668  use_Return_instead_of_ReturnRef_to_return_a_value);
669  return Action<F>(new Impl<F>(ref_));
670  }
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::ReturnRefAction< T >::operator Action< F > ( ) const
inline

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

References GTEST_COMPILE_ASSERT_.

662  {
663  typedef typename Function<F>::Result Result;
664  // Asserts that the function return type is a reference. This
665  // catches the user error of using ReturnRef(x) when Return(x)
666  // should be used, and generates some helpful error message.
668  use_Return_instead_of_ReturnRef_to_return_a_value);
669  return Action<F>(new Impl<F>(ref_));
670  }
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 >
T & testing::internal::ReturnRefAction< T >::ref_
private

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


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