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

#include <gmock-actions.h>

Public Member Functions

 ReturnAction (ByMoveWrapper< T > wrapper)
 
operator() () const
 

Detailed Description

template<typename T>
class testing::internal::ReturnAction< ByMoveWrapper< T > >

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

Constructor & Destructor Documentation

◆ ReturnAction()

template<typename T >
testing::internal::ReturnAction< ByMoveWrapper< T > >::ReturnAction ( ByMoveWrapper< T >  wrapper)
inlineexplicit

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

1093  : state_(new State(std::move(wrapper.payload))) {}

Member Function Documentation

◆ operator()()

template<typename T >
T testing::internal::ReturnAction< ByMoveWrapper< T > >::operator() ( ) const
inline

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

1095  {
1096  GTEST_CHECK_(!state_->called)
1097  << "A ByMove() action must be performed at most once.";
1098 
1099  state_->called = true;
1100  return std::move(state_->value);
1101  }
#define GTEST_CHECK_(condition)
Definition: gtest-port.h:1025

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