Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Catch::Generators::FixedValuesGenerator< T > Class Template Referencefinal

#include <catch_generators.hpp>

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

Public Member Functions

 FixedValuesGenerator (std::initializer_list< T > values)
 
T const & get () const override
 
bool next () override
 
 FixedValuesGenerator (std::initializer_list< T > values)
 
T const & get () const override
 
bool next () override
 
- Public Member Functions inherited from Catch::Generators::IGenerator< T >
virtual ~IGenerator ()=default
 
virtual ~IGenerator ()=default
 
- Public Member Functions inherited from Catch::Generators::GeneratorUntypedBase
 GeneratorUntypedBase ()=default
 
virtual ~GeneratorUntypedBase ()
 
 GeneratorUntypedBase ()=default
 
virtual ~GeneratorUntypedBase ()
 

Additional Inherited Members

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

Detailed Description

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

Definition at line 3556 of file catch.hpp.

Constructor & Destructor Documentation

◆ FixedValuesGenerator() [1/2]

template<typename T >
Catch::Generators::FixedValuesGenerator< T >::FixedValuesGenerator ( std::initializer_list< T > values)
inline

Definition at line 76 of file catch_generators.hpp.

76: m_values( values ) {}
GeneratorWrapper< T > values(std::initializer_list< T > values)
Here is the call graph for this function:

◆ FixedValuesGenerator() [2/2]

template<typename T >
Catch::Generators::FixedValuesGenerator< T >::FixedValuesGenerator ( std::initializer_list< T > values)
inline

Definition at line 3560 of file catch.hpp.

3560: m_values( values ) {}
Here is the call graph for this function:

Member Function Documentation

◆ get() [1/2]

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

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

Definition at line 78 of file catch_generators.hpp.

78 {
79 return m_values[m_idx];
80 }

◆ get() [2/2]

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

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

Definition at line 3562 of file catch.hpp.

3562 {
3563 return m_values[m_idx];
3564 }

◆ next() [1/2]

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

Implements Catch::Generators::GeneratorUntypedBase.

Definition at line 81 of file catch_generators.hpp.

81 {
82 ++m_idx;
83 return m_idx < m_values.size();
84 }

◆ next() [2/2]

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

Implements Catch::Generators::GeneratorUntypedBase.

Definition at line 3565 of file catch.hpp.

3565 {
3566 ++m_idx;
3567 return m_idx < m_values.size();
3568 }

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