Horizon
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Catch::Generators::ChunkGenerator< T > Class Template Referencefinal
Inheritance diagram for Catch::Generators::ChunkGenerator< T >:
Catch::Generators::IGenerator< std::vector< T > > Catch::Generators::GeneratorUntypedBase

Public Member Functions

 ChunkGenerator (size_t size, GeneratorWrapper< T > generator)
 
std::vector< T > const & get () const override
 
bool next () override
 Attempts to move the generator to the next element.
 
- Public Member Functions inherited from Catch::Generators::IGenerator< std::vector< T > >
 IGenerator (IGenerator const &)=default
 
IGeneratoroperator= (IGenerator const &)=default
 
- Public Member Functions inherited from Catch::Generators::GeneratorUntypedBase
 GeneratorUntypedBase (GeneratorUntypedBase const &)=default
 
GeneratorUntypedBaseoperator= (GeneratorUntypedBase const &)=default
 
bool countedNext ()
 Attempts to move the generator to the next element.
 
std::size_t currentElementIndex () const
 
StringRef currentElementAsString () const
 Returns generator's current element as user-friendly string.
 

Additional Inherited Members

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

Member Function Documentation

◆ get()

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

◆ next()

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

Attempts to move the generator to the next element.

Returns true iff the move succeeded (and a valid element can be retrieved).

Implements Catch::Generators::GeneratorUntypedBase.


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