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

#include <gmock-actions.h>

Public Member Functions

 ReturnRoundRobinAction (std::vector< T > values)
 
template<typename... Args>
operator() (Args &&...) const
 

Detailed Description

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

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

Constructor & Destructor Documentation

◆ ReturnRoundRobinAction()

template<typename T >
testing::internal::ReturnRoundRobinAction< T >::ReturnRoundRobinAction ( std::vector< T >  values)
inlineexplicit

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

1226  {
1227  GTEST_CHECK_(!values.empty())
1228  << "ReturnRoundRobin requires at least one element.";
1229  state_->values = std::move(values);
1230  }
#define GTEST_CHECK_(condition)
Definition: gtest-port.h:1025

Member Function Documentation

◆ operator()()

template<typename T >
template<typename... Args>
T testing::internal::ReturnRoundRobinAction< T >::operator() ( Args &&  ...) const
inline

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

1233  {
1234  return state_->Next();
1235  }

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