proxygen
testing::internal::IgnoreResultAction< A > Class Template Reference

#include <gmock-actions.h>

Classes

class  Impl
 

Public Member Functions

 IgnoreResultAction (const A &action)
 
template<typename F >
 operator Action< F > () const
 
 IgnoreResultAction (const A &action)
 
template<typename F >
 operator Action< F > () const
 
 IgnoreResultAction (const A &action)
 
template<typename F >
 operator Action< F > () const
 

Private Member Functions

 GTEST_DISALLOW_ASSIGN_ (IgnoreResultAction)
 
 GTEST_DISALLOW_ASSIGN_ (IgnoreResultAction)
 
 GTEST_DISALLOW_ASSIGN_ (IgnoreResultAction)
 

Private Attributes

const A action_
 

Detailed Description

template<typename A>
class testing::internal::IgnoreResultAction< A >

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

Constructor & Destructor Documentation

template<typename A >
testing::internal::IgnoreResultAction< A >::IgnoreResultAction ( const A action)
inlineexplicit

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

template<typename A >
testing::internal::IgnoreResultAction< A >::IgnoreResultAction ( const A action)
inlineexplicit

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

template<typename A >
testing::internal::IgnoreResultAction< A >::IgnoreResultAction ( const A action)
inlineexplicit

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

Member Function Documentation

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

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

895  {
896  // Assert statement belongs here because this is the best place to verify
897  // conditions on F. It produces the clearest error messages
898  // in most compilers.
899  // Impl really belongs in this scope as a local class but can't
900  // because MSVC produces duplicate symbols in different translation units
901  // in this case. Until MS fixes that bug we put Impl into the class scope
902  // and put the typedef both here (for use in assert statement) and
903  // in the Impl class. But both definitions must be the same.
904  typedef typename internal::Function<F>::Result Result;
905 
906  // Asserts at compile time that F returns void.
907  CompileAssertTypesEqual<void, Result>();
908 
909  return Action<F>(new Impl<F>(action_));
910  }
template<typename A >
template<typename F >
testing::internal::IgnoreResultAction< A >::operator Action< F > ( ) const
inline

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

895  {
896  // Assert statement belongs here because this is the best place to verify
897  // conditions on F. It produces the clearest error messages
898  // in most compilers.
899  // Impl really belongs in this scope as a local class but can't
900  // because MSVC produces duplicate symbols in different translation units
901  // in this case. Until MS fixes that bug we put Impl into the class scope
902  // and put the typedef both here (for use in assert statement) and
903  // in the Impl class. But both definitions must be the same.
904  typedef typename internal::Function<F>::Result Result;
905 
906  // Asserts at compile time that F returns void.
907  CompileAssertTypesEqual<void, Result>();
908 
909  return Action<F>(new Impl<F>(action_));
910  }
template<typename A >
template<typename F >
testing::internal::IgnoreResultAction< A >::operator Action< F > ( ) const
inline

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

895  {
896  // Assert statement belongs here because this is the best place to verify
897  // conditions on F. It produces the clearest error messages
898  // in most compilers.
899  // Impl really belongs in this scope as a local class but can't
900  // because MSVC produces duplicate symbols in different translation units
901  // in this case. Until MS fixes that bug we put Impl into the class scope
902  // and put the typedef both here (for use in assert statement) and
903  // in the Impl class. But both definitions must be the same.
904  typedef typename internal::Function<F>::Result Result;
905 
906  // Asserts at compile time that F returns void.
907  CompileAssertTypesEqual<void, Result>();
908 
909  return Action<F>(new Impl<F>(action_));
910  }

Member Data Documentation

template<typename A >
const A testing::internal::IgnoreResultAction< A >::action_
private

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


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