Agora  1.2.0
Agora project
Catch::Generators::ChunkGenerator< T > Class Template Referencefinal

#include <catch.hpp>

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

Public Member Functions

 ChunkGenerator (size_t size, GeneratorWrapper< T > generator)
 
std::vector< T > const & get () const override
 
bool next () override
 
- Public Member Functions inherited from Catch::Generators::IGenerator< std::vector< T > >
virtual ~IGenerator ()=default
 
virtual std::vector< T > const & get () const=0
 
- Public Member Functions inherited from Catch::Generators::GeneratorUntypedBase
 GeneratorUntypedBase ()=default
 
virtual ~GeneratorUntypedBase ()
 

Private Attributes

std::vector< Tm_chunk
 
size_t m_chunk_size
 
GeneratorWrapper< Tm_generator
 
bool m_used_up = false
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ ChunkGenerator()

template<typename T >
Catch::Generators::ChunkGenerator< T >::ChunkGenerator ( size_t  size,
GeneratorWrapper< T generator 
)
inline
Here is the call graph for this function:

Member Function Documentation

◆ get()

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

◆ next()

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

Implements Catch::Generators::GeneratorUntypedBase.

Here is the call graph for this function:

Member Data Documentation

◆ m_chunk

template<typename T >
std::vector<T> Catch::Generators::ChunkGenerator< T >::m_chunk
private

◆ m_chunk_size

template<typename T >
size_t Catch::Generators::ChunkGenerator< T >::m_chunk_size
private

◆ m_generator

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

◆ m_used_up

template<typename T >
bool Catch::Generators::ChunkGenerator< T >::m_used_up = false
private

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