Public Member Functions | Private Attributes | List of all members
Catch::Generators::RepeatGenerator< T > Class Template Reference

#include <catch.hpp>

Inheritance diagram for Catch::Generators::RepeatGenerator< T >:
Inheritance graph
[legend]

Public Member Functions

T const & get () const override
 
bool next () override
 
 RepeatGenerator (size_t repeats, GeneratorWrapper< T > &&generator)
 
- 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

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

Additional Inherited Members

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

Detailed Description

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

Definition at line 3773 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 3780 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 3787 of file catch.hpp.

◆ next()

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

Implements Catch::Generators::GeneratorUntypedBase.

Definition at line 3795 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 3777 of file catch.hpp.

◆ m_generator

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

Definition at line 3774 of file catch.hpp.

◆ m_repeat_index

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

Definition at line 3778 of file catch.hpp.

◆ m_returned

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

Definition at line 3775 of file catch.hpp.

◆ m_target_repeats

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

Definition at line 3776 of file catch.hpp.


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


inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:18:03