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

#include <catch.hpp>

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

Public Types

using type = T
 

Public Member Functions

 TakeGenerator (size_t target, GeneratorWrapper< T > &&generator)
 
T const & get () const override
 
bool next () override
 

Private Attributes

GeneratorWrapper< T > m_generator
 
size_t m_returned = 0
 
size_t m_target
 

Detailed Description

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

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

◆ TakeGenerator()

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

Definition at line 4125 of file catch.hpp.

Member Function Documentation

◆ get()

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

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

Definition at line 4131 of file catch.hpp.

◆ next()

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

Implements Catch::Generators::GeneratorUntypedBase.

Definition at line 4134 of file catch.hpp.

Member Data Documentation

◆ m_generator

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

Definition at line 4121 of file catch.hpp.

◆ m_returned

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

Definition at line 4122 of file catch.hpp.

◆ m_target

template<typename T >
size_t Catch::Generators::TakeGenerator< T >::m_target
private

Definition at line 4123 of file catch.hpp.


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