API
Catch::Generators::RepeatGenerator< T > Class Template Reference

#include <catch.hpp>

Inheritance diagram for Catch::Generators::RepeatGenerator< T >:
Inheritance graph
Collaboration diagram for Catch::Generators::RepeatGenerator< T >:
Collaboration graph

Public Types

using type = T
 

Public Member Functions

 RepeatGenerator (size_t repeats, GeneratorWrapper< T > &&generator)
 
T const & get () const override
 
bool next () override
 

Private Attributes

GeneratorWrapper< T > m_generator
 
std::vector< T > m_returned
 
size_t m_target_repeats
 
size_t m_current_repeat = 0
 
size_t m_repeat_index = 0
 

Detailed Description

template<typename T>
class Catch::Generators::RepeatGenerator< T >

Definition at line 4200 of file catch.hpp.

Member Typedef Documentation

◆ type

template<typename T >
using Catch::Generators::IGenerator< T >::type = T
inherited

Definition at line 3949 of file catch.hpp.

Constructor & Destructor Documentation

◆ RepeatGenerator()

template<typename T >
Catch::Generators::RepeatGenerator< T >::RepeatGenerator ( size_t  repeats,
GeneratorWrapper< T > &&  generator 
)
inline

Definition at line 4210 of file catch.hpp.

Member Function Documentation

◆ get()

template<typename T >
T const& Catch::Generators::RepeatGenerator< T >::get ( ) const
inlineoverridevirtual

Implements Catch::Generators::IGenerator< T >.

Definition at line 4217 of file catch.hpp.

◆ next()

template<typename T >
bool Catch::Generators::RepeatGenerator< T >::next ( )
inlineoverridevirtual

Implements Catch::Generators::GeneratorUntypedBase.

Definition at line 4225 of file catch.hpp.

Member Data Documentation

◆ m_current_repeat

template<typename T >
size_t Catch::Generators::RepeatGenerator< T >::m_current_repeat = 0
private

Definition at line 4207 of file catch.hpp.

◆ m_generator

template<typename T >
GeneratorWrapper<T> Catch::Generators::RepeatGenerator< T >::m_generator
private

Definition at line 4204 of file catch.hpp.

◆ m_repeat_index

template<typename T >
size_t Catch::Generators::RepeatGenerator< T >::m_repeat_index = 0
private

Definition at line 4208 of file catch.hpp.

◆ m_returned

template<typename T >
std::vector<T> Catch::Generators::RepeatGenerator< T >::m_returned
mutableprivate

Definition at line 4205 of file catch.hpp.

◆ m_target_repeats

template<typename T >
size_t Catch::Generators::RepeatGenerator< T >::m_target_repeats
private

Definition at line 4206 of file catch.hpp.


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