Agora  1.2.0
Agora project
Catch::Generators::TakeGenerator< T > Class Template Reference

#include <catch.hpp>

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

Public Member Functions

 TakeGenerator (size_t target, 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< Tm_generator
 
size_t m_returned = 0
 
size_t m_target
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ TakeGenerator()

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

Member Function Documentation

◆ get()

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

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

Here is the call graph for this function:

◆ next()

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

Implements Catch::Generators::GeneratorUntypedBase.

Here is the call graph for this function:

Member Data Documentation

◆ m_generator

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

◆ m_returned

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

◆ m_target

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

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