|
Horizon
|
Public Member Functions | |
| GeneratorUntypedBase (GeneratorUntypedBase const &)=default | |
| GeneratorUntypedBase & | operator= (GeneratorUntypedBase const &)=default |
| bool | countedNext () |
| Attempts to move the generator to the next element. More... | |
| std::size_t | currentElementIndex () const |
| StringRef | currentElementAsString () const |
| Returns generator's current element as user-friendly string. More... | |
| 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.
| 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.