tesseract v5.3.3.20231005
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 832 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 834 of file gmock-actions.h.

834 {
835 GTEST_CHECK_(!values.empty())
836 << "ReturnRoundRobin requires at least one element.";
837 state_->values = std::move(values);
838 }
#define GTEST_CHECK_(condition)
Definition: gtest-port.h:1008

Member Function Documentation

◆ operator()()

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

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

841 {
842 return state_->Next();
843 }

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