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

#include <catch.hpp>

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

Public Types

using type = T
 

Public Member Functions

template<typename InputIterator , typename InputSentinel >
 IteratorGenerator (InputIterator first, InputSentinel last)
 
T const & get () const override
 
bool next () override
 

Private Attributes

std::vector< T > m_elems
 
size_t m_current = 0
 

Detailed Description

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

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

◆ IteratorGenerator()

template<typename T >
template<typename InputIterator , typename InputSentinel >
Catch::Generators::IteratorGenerator< T >::IteratorGenerator ( InputIterator  first,
InputSentinel  last 
)
inline

Definition at line 4721 of file catch.hpp.

Member Function Documentation

◆ get()

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

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

Definition at line 4727 of file catch.hpp.

◆ next()

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

Implements Catch::Generators::GeneratorUntypedBase.

Definition at line 4731 of file catch.hpp.

Member Data Documentation

◆ m_current

template<typename T >
size_t Catch::Generators::IteratorGenerator< T >::m_current = 0
private

Definition at line 4718 of file catch.hpp.

◆ m_elems

template<typename T >
std::vector<T> Catch::Generators::IteratorGenerator< T >::m_elems
private

Definition at line 4717 of file catch.hpp.


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