Xmipp  v3.23.11-Nereus
Classes | Public Member Functions | List of all members
testing::internal::IgnoreResultAction< A > Class Template Reference

#include <gmock-actions.h>

Public Member Functions

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

Detailed Description

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

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

Constructor & Destructor Documentation

◆ IgnoreResultAction()

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

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

1361 : action_(action) {}

Member Function Documentation

◆ operator Action< F >()

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

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

1364  {
1365  // Assert statement belongs here because this is the best place to verify
1366  // conditions on F. It produces the clearest error messages
1367  // in most compilers.
1368  // Impl really belongs in this scope as a local class but can't
1369  // because MSVC produces duplicate symbols in different translation units
1370  // in this case. Until MS fixes that bug we put Impl into the class scope
1371  // and put the typedef both here (for use in assert statement) and
1372  // in the Impl class. But both definitions must be the same.
1373  typedef typename internal::Function<F>::Result Result;
1374 
1375  // Asserts at compile time that F returns void.
1376  static_assert(std::is_void<Result>::value, "Result type should be void.");
1377 
1378  return Action<F>(new Impl<F>(action_));
1379  }

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