Xmipp  v3.23.11-Nereus
Classes | Public Member Functions | List of all members
testing::internal::ReturnAction< R > Class Template Referencefinal

#include <gmock-actions.h>

Public Member Functions

 ReturnAction (R value)
 
template<typename U , typename... Args, typename = typename std::enable_if<conjunction< negation<std::is_same<void, U>>, negation<std::is_reference<U>>, std::is_convertible<R, U>, std::is_move_constructible<U>>::value>::type>
 operator OnceAction< U (Args...)>() &&
 
template<typename U , typename... Args, typename = typename std::enable_if<conjunction< negation<std::is_same<void, U>>, negation<std::is_reference<U>>, std::is_convertible<const R&, U>, std::is_copy_constructible<U>>::value>::type>
 operator Action< U (Args...)>() const
 

Detailed Description

template<typename R>
class testing::internal::ReturnAction< R >

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

Constructor & Destructor Documentation

◆ ReturnAction()

template<typename R >
testing::internal::ReturnAction< R >::ReturnAction ( value)
inlineexplicit

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

926 : value_(std::move(value)) {}

Member Function Documentation

◆ operator Action< U()

template<typename R >
template<typename U , typename... Args, typename = typename std::enable_if<conjunction< negation<std::is_same<void, U>>, negation<std::is_reference<U>>, std::is_convertible<const R&, U>, std::is_copy_constructible<U>>::value>::type>
testing::internal::ReturnAction< R >::operator Action< U ( Args...  ) const
inline

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

946  { // NOLINT
947  return Impl<U>(value_);
948  }

◆ operator OnceAction< U()

template<typename R >
template<typename U , typename... Args, typename = typename std::enable_if<conjunction< negation<std::is_same<void, U>>, negation<std::is_reference<U>>, std::is_convertible<R, U>, std::is_move_constructible<U>>::value>::type>
testing::internal::ReturnAction< R >::operator OnceAction< U ( Args...  ) &&
inline

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

935  { // NOLINT
936  return Impl<U>(std::move(value_));
937  }

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