API
Catch::Generators::MapGenerator< T, U, Func > Class Template Reference

#include <catch.hpp>

Inheritance diagram for Catch::Generators::MapGenerator< T, U, Func >:
Inheritance graph
Collaboration diagram for Catch::Generators::MapGenerator< T, U, Func >:
Collaboration graph

Public Types

using type = T
 

Public Member Functions

template<typename F2 = Func>
 MapGenerator (F2 &&function, GeneratorWrapper< U > &&generator)
 
T const & get () const override
 
bool next () override
 

Private Attributes

GeneratorWrapper< U > m_generator
 
Func m_function
 
m_cache
 

Detailed Description

template<typename T, typename U, typename Func>
class Catch::Generators::MapGenerator< T, U, Func >

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

◆ MapGenerator()

template<typename T , typename U , typename Func >
template<typename F2 = Func>
Catch::Generators::MapGenerator< T, U, Func >::MapGenerator ( F2 &&  function,
GeneratorWrapper< U > &&  generator 
)
inline

Definition at line 4264 of file catch.hpp.

Member Function Documentation

◆ get()

template<typename T , typename U , typename Func >
T const& Catch::Generators::MapGenerator< T, U, Func >::get ( ) const
inlineoverridevirtual

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

Definition at line 4270 of file catch.hpp.

◆ next()

template<typename T , typename U , typename Func >
bool Catch::Generators::MapGenerator< T, U, Func >::next ( )
inlineoverridevirtual

Implements Catch::Generators::GeneratorUntypedBase.

Definition at line 4273 of file catch.hpp.

Member Data Documentation

◆ m_cache

template<typename T , typename U , typename Func >
T Catch::Generators::MapGenerator< T, U, Func >::m_cache
private

Definition at line 4261 of file catch.hpp.

◆ m_function

template<typename T , typename U , typename Func >
Func Catch::Generators::MapGenerator< T, U, Func >::m_function
private

Definition at line 4259 of file catch.hpp.

◆ m_generator

template<typename T , typename U , typename Func >
GeneratorWrapper<U> Catch::Generators::MapGenerator< T, U, Func >::m_generator
private

Definition at line 4258 of file catch.hpp.


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