FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Catch::Generators::RepeatGenerator< T > Class Template Reference
Inheritance diagram for Catch::Generators::RepeatGenerator< T >:
Catch::Generators::IGenerator< T > Catch::Generators::GeneratorUntypedBase

Public Member Functions

 RepeatGenerator (size_t repeats, GeneratorWrapper< T > &&generator)
 
T const & get () const override
 
bool next () override
 
- Public Member Functions inherited from Catch::Generators::IGenerator< T >
virtual ~IGenerator ()=default
 
- Public Member Functions inherited from Catch::Generators::GeneratorUntypedBase
 GeneratorUntypedBase ()=default
 
virtual ~GeneratorUntypedBase ()
 

Private Attributes

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

Additional Inherited Members

- Public Types inherited from Catch::Generators::IGenerator< T >
using type = T
 

Constructor & Destructor Documentation

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

Member Function Documentation

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

Field Documentation

template<typename T >
size_t Catch::Generators::RepeatGenerator< T >::m_current_repeat
private
template<typename T >
GeneratorWrapper<T> Catch::Generators::RepeatGenerator< T >::m_generator
private
template<typename T >
size_t Catch::Generators::RepeatGenerator< T >::m_repeat_index
private
template<typename T >
std::vector<T> Catch::Generators::RepeatGenerator< T >::m_returned
mutableprivate
template<typename T >
size_t Catch::Generators::RepeatGenerator< T >::m_target_repeats
private