Horizon
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Catch::Generators::SingleValueGenerator< T > Class Template Referencefinal
Inheritance diagram for Catch::Generators::SingleValueGenerator< T >:
Catch::Generators::IGenerator< T > Catch::Generators::GeneratorUntypedBase

Public Member Functions

 SingleValueGenerator (T const &value)
 
 SingleValueGenerator (T &&value)
 
T const & get () const override
 
bool next () override
 Attempts to move the generator to the next element.
 
- Public Member Functions inherited from Catch::Generators::IGenerator< T >
 IGenerator (IGenerator const &)=default
 
IGeneratoroperator= (IGenerator const &)=default
 
- Public Member Functions inherited from Catch::Generators::GeneratorUntypedBase
 GeneratorUntypedBase (GeneratorUntypedBase const &)=default
 
GeneratorUntypedBaseoperator= (GeneratorUntypedBase const &)=default
 
bool countedNext ()
 Attempts to move the generator to the next element.
 
std::size_t currentElementIndex () const
 
StringRef currentElementAsString () const
 Returns generator's current element as user-friendly string.
 

Additional Inherited Members

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

Member Function Documentation

◆ get()

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

◆ next()

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

Attempts to move the generator to the next element.

Returns true iff the move succeeded (and a valid element can be retrieved).

Implements Catch::Generators::GeneratorUntypedBase.


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