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

#include <catch.hpp>

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

Public Types

using type = T
 

Public Member Functions

template<typename... Gs>
 Generators (Gs &&... moreGenerators)
 
T const & get () const override
 
bool next () override
 

Private Member Functions

void populate (GeneratorWrapper< T > &&generator)
 
void populate (T &&val)
 
template<typename U >
void populate (U &&val)
 
template<typename U , typename... Gs>
void populate (U &&valueOrGenerator, Gs &&... moreGenerators)
 

Private Attributes

std::vector< GeneratorWrapper< T > > m_generators
 
size_t m_current = 0
 

Detailed Description

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

Definition at line 4010 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

◆ Generators()

template<typename T >
template<typename... Gs>
Catch::Generators::Generators< T >::Generators ( Gs &&...  moreGenerators)
inline

Definition at line 4032 of file catch.hpp.

Member Function Documentation

◆ get()

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

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

Definition at line 4037 of file catch.hpp.

◆ next()

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

Implements Catch::Generators::GeneratorUntypedBase.

Definition at line 4041 of file catch.hpp.

◆ populate() [1/4]

template<typename T >
void Catch::Generators::Generators< T >::populate ( GeneratorWrapper< T > &&  generator)
inlineprivate

Definition at line 4014 of file catch.hpp.

◆ populate() [2/4]

template<typename T >
void Catch::Generators::Generators< T >::populate ( T &&  val)
inlineprivate

Definition at line 4017 of file catch.hpp.

◆ populate() [3/4]

template<typename T >
template<typename U >
void Catch::Generators::Generators< T >::populate ( U &&  val)
inlineprivate

Definition at line 4021 of file catch.hpp.

◆ populate() [4/4]

template<typename T >
template<typename U , typename... Gs>
void Catch::Generators::Generators< T >::populate ( U &&  valueOrGenerator,
Gs &&...  moreGenerators 
)
inlineprivate

Definition at line 4025 of file catch.hpp.

Member Data Documentation

◆ m_current

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

Definition at line 4012 of file catch.hpp.

◆ m_generators

template<typename T >
std::vector<GeneratorWrapper<T> > Catch::Generators::Generators< T >::m_generators
private

Definition at line 4011 of file catch.hpp.


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