#include <catch_amalgamated.hpp>
|
virtual bool | next ()=0 |
|
virtual std::string | stringifyImpl () const =0 |
| Customization point for currentElementAsString
|
|
◆ GeneratorUntypedBase() [1/2]
Catch::Generators::GeneratorUntypedBase::GeneratorUntypedBase |
( |
| ) |
|
|
default |
◆ GeneratorUntypedBase() [2/2]
◆ ~GeneratorUntypedBase()
Catch::Generators::GeneratorUntypedBase::~GeneratorUntypedBase |
( |
| ) |
|
|
virtualdefault |
◆ countedNext()
bool Catch::Generators::GeneratorUntypedBase::countedNext |
( |
| ) |
|
Attempts to move the generator to the next element
Serves as a non-virtual interface to next
, so that the top level interface can provide sanity checking and shared features.
As with next
, returns true iff the move succeeded and the generator has new valid element to provide.
◆ currentElementAsString()
StringRef Catch::Generators::GeneratorUntypedBase::currentElementAsString |
( |
| ) |
const |
Returns generator's current element as user-friendly string.
By default returns string equivalent to calling Catch::Detail::stringify
on the current element, but generators can customize their implementation as needed.
Not thread-safe due to internal caching.
The returned ref is valid only until the generator instance is destructed, or it moves onto the next element, whichever comes first.
◆ currentElementIndex()
std::size_t Catch::Generators::GeneratorUntypedBase::currentElementIndex |
( |
| ) |
const |
|
inline |
◆ next()
virtual bool Catch::Generators::GeneratorUntypedBase::next |
( |
| ) |
|
|
privatepure virtual |
Attempts to move the generator to the next element
Returns true iff the move succeeded (and a valid element can be retrieved).
Implemented in Catch::Generators::ChunkGenerator< T >, Catch::Generators::FilterGenerator< T, Predicate >, Catch::Generators::FixedValuesGenerator< T >, Catch::Generators::Generators< T >, Catch::Generators::MapGenerator< T, U, Func >, Catch::Generators::RepeatGenerator< T >, Catch::Generators::SingleValueGenerator< T >, and Catch::Generators::TakeGenerator< T >.
◆ operator=()
◆ stringifyImpl()
virtual std::string Catch::Generators::GeneratorUntypedBase::stringifyImpl |
( |
| ) |
const |
|
privatepure virtual |
◆ m_currentElementIndex
std::size_t Catch::Generators::GeneratorUntypedBase::m_currentElementIndex = 0 |
|
private |
◆ m_stringReprCache
std::string Catch::Generators::GeneratorUntypedBase::m_stringReprCache |
|
mutableprivate |
The documentation for this class was generated from the following files: