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

#include <catch.hpp>

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

Public Member Functions

 RangeGenerator (T const &start, T const &end, T const &step)
 
 RangeGenerator (T const &start, T const &end)
 
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

T m_current
 
T m_end
 
T m_step
 
bool m_positive
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ RangeGenerator() [1/2]

template<typename T >
Catch::Generators::RangeGenerator< T >::RangeGenerator ( T const &  start,
T const &  end,
T const &  step 
)
inline

◆ RangeGenerator() [2/2]

template<typename T >
Catch::Generators::RangeGenerator< T >::RangeGenerator ( T const &  start,
T const &  end 
)
inline

Member Function Documentation

◆ get()

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

◆ next()

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

Member Data Documentation

◆ m_current

template<typename T >
T Catch::Generators::RangeGenerator< T >::m_current
private

◆ m_end

template<typename T >
T Catch::Generators::RangeGenerator< T >::m_end
private

◆ m_positive

template<typename T >
bool Catch::Generators::RangeGenerator< T >::m_positive
private

◆ m_step

template<typename T >
T Catch::Generators::RangeGenerator< T >::m_step
private

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