API
Catch::Generators::ChunkGenerator< T > Class Template Referencefinal

#include <catch.hpp>

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

Public Types

using type = std::vector< T >
 

Public Member Functions

 ChunkGenerator (size_t size, GeneratorWrapper< T > generator)
 
std::vector< T > const & get () const override
 
bool next () override
 

Private Attributes

std::vector< T > m_chunk
 
size_t m_chunk_size
 
GeneratorWrapper< T > m_generator
 
bool m_used_up = false
 

Detailed Description

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

Definition at line 4297 of file catch.hpp.

Member Typedef Documentation

◆ type

using Catch::Generators::IGenerator< std::vector< T > >::type = std::vector< T >
inherited

Definition at line 3949 of file catch.hpp.

Constructor & Destructor Documentation

◆ ChunkGenerator()

template<typename T >
Catch::Generators::ChunkGenerator< T >::ChunkGenerator ( size_t  size,
GeneratorWrapper< T >  generator 
)
inline

Definition at line 4303 of file catch.hpp.

Member Function Documentation

◆ get()

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

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

Definition at line 4317 of file catch.hpp.

◆ next()

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

Implements Catch::Generators::GeneratorUntypedBase.

Definition at line 4320 of file catch.hpp.

Member Data Documentation

◆ m_chunk

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

Definition at line 4298 of file catch.hpp.

◆ m_chunk_size

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

Definition at line 4299 of file catch.hpp.

◆ m_generator

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

Definition at line 4300 of file catch.hpp.

◆ m_used_up

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

Definition at line 4301 of file catch.hpp.


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