Loading...
Searching...
No Matches
Catch::Generators Namespace Reference

## Namespaces

namespace | Detail

## Classes

struct | as
class | ChunkGenerator
class | FilterGenerator
class | FixedValuesGenerator
class | Generators
class | GeneratorUntypedBase
class | GeneratorWrapper
class | IGenerator
class | MapGenerator
class | RepeatGenerator
class | SingleValueGenerator
class | TakeGenerator

## Typedefs

using | GeneratorBasePtr = Catch::Detail::unique_ptr<GeneratorUntypedBase>
template<typename T>
using | GeneratorPtr = Catch::Detail::unique_ptr<IGenerator<T>>

## Functions

IGeneratorTracker * | acquireGeneratorTracker (StringRef generatorName, SourceLineInfo const &lineInfo)
IGeneratorTracker * | createGeneratorTracker (StringRef generatorName, SourceLineInfo lineInfo, GeneratorBasePtr &&generator)
template<typename T, typename DecayedT = std::decay_t<T>>
GeneratorWrapper< DecayedT > | value (T &&value)
template<typename T>
GeneratorWrapper< T > | values (std::initializer_list< T > values)
template<typename... Ts>
GeneratorWrapper< std::tuple< std::decay_t< Ts >... > > | table (std::initializer_list< std::tuple< std::decay_t< Ts >... > > tuples)
template<typename T, typename... Gs>
auto | makeGenerators (GeneratorWrapper< T > &&generator, Gs &&... moreGenerators) -> Generators< T >
template<typename T>
auto | makeGenerators (GeneratorWrapper< T > &&generator) -> Generators< T >
template<typename T, typename... Gs>
auto | makeGenerators (T &&val, Gs &&... moreGenerators) -> Generators< std::decay_t< T > >
template<typename T, typename U, typename... Gs>
auto | makeGenerators (as< T >, U &&val, Gs &&... moreGenerators) -> Generators< T >
template<typename L>
auto | generate (StringRef generatorName, SourceLineInfo const &lineInfo, L const &generatorExpression) -> typename decltype(generatorExpression())::type
template<typename T>
GeneratorWrapper< T > | take (size_t target, GeneratorWrapper< T > &&generator)
template<typename T, typename Predicate>
GeneratorWrapper< T > | filter (Predicate &&pred, GeneratorWrapper< T > &&generator)
template<typename T>
GeneratorWrapper< T > | repeat (size_t repeats, GeneratorWrapper< T > &&generator)
template<typename Func, typename U, typename T = FunctionReturnType<Func, U>>
GeneratorWrapper< T > | map (Func &&function, GeneratorWrapper< U > &&generator)
template<typename T>
GeneratorWrapper< std::vector< T > > | chunk (size_t size, GeneratorWrapper< T > &&generator)

## Typedef Documentation

## GeneratorBasePtr

typedef Catch::Detail::unique_ptr< GeneratorUntypedBase > Catch::Generators::GeneratorBasePtr = Catch::Detail::unique_ptr<GeneratorUntypedBase>

## GeneratorPtr

template<typename T>

using Catch::Generators::GeneratorPtr = Catch::Detail::unique_ptr<IGenerator<T>>

## Function Documentation

## acquireGeneratorTracker()

IGeneratorTracker * Catch::Generators::acquireGeneratorTracker | ( | StringRef | generatorName,
|  | SourceLineInfo const & | lineInfo )

Here is the call graph for this function:
Here is the caller graph for this function:

## chunk()

template<typename T>

GeneratorWrapper< std::vector< T > > Catch::Generators::chunk | ( | size_t | size,
|  | GeneratorWrapper< T > && | generator )

Here is the call graph for this function:
Here is the caller graph for this function:

## createGeneratorTracker()

IGeneratorTracker * Catch::Generators::createGeneratorTracker | ( | StringRef | generatorName,
|  | SourceLineInfo | lineInfo,
|  | GeneratorBasePtr && | generator )

Here is the call graph for this function:
Here is the caller graph for this function:

## filter()

template<typename T, typename Predicate>

GeneratorWrapper< T > Catch::Generators::filter | ( | Predicate && | pred,
|  | GeneratorWrapper< T > && | generator )

Here is the call graph for this function:
Here is the caller graph for this function:

## generate()

template<typename L>

auto Catch::Generators::generate | ( | StringRef | generatorName,
|  | SourceLineInfo const & | lineInfo,
|  | L const & | generatorExpression ) -> typename decltype(generatorExpression())::type

Here is the call graph for this function:
Here is the caller graph for this function:

## makeGenerators() [1/4]

template<typename T, typename U, typename... Gs>

auto Catch::Generators::makeGenerators | ( | as< T > | ,
|  | U && | val,
|  | Gs &&... | moreGenerators ) -> Generators<T>

Here is the call graph for this function:

## makeGenerators() [2/4]

template<typename T>

auto Catch::Generators::makeGenerators | ( | GeneratorWrapper< T > && | generator | ) | -> Generators<T>

Here is the call graph for this function:

## makeGenerators() [3/4]

template<typename T, typename... Gs>

auto Catch::Generators::makeGenerators | ( | GeneratorWrapper< T > && | generator,
|  | Gs &&... | moreGenerators ) -> Generators<T>

Here is the call graph for this function:
Here is the caller graph for this function:

## makeGenerators() [4/4]

template<typename T, typename... Gs>

auto Catch::Generators::makeGenerators | ( | T && | val,
|  | Gs &&... | moreGenerators ) -> Generators<std::decay_t<T>>

Here is the call graph for this function:

## map()

template<typename Func, typename U, typename T = FunctionReturnType<Func, U>>

GeneratorWrapper< T > Catch::Generators::map | ( | Func && | function,
|  | GeneratorWrapper< U > && | generator )

Here is the call graph for this function:
Here is the caller graph for this function:

## repeat()

template<typename T>

GeneratorWrapper< T > Catch::Generators::repeat | ( | size_t | repeats,
|  | GeneratorWrapper< T > && | generator )

Here is the call graph for this function:
Here is the caller graph for this function:

## table()

template<typename... Ts>

GeneratorWrapper< std::tuple< std::decay_t< Ts >... > > Catch::Generators::table | ( | std::initializer_list< std::tuple< std::decay_t< Ts >... > > | tuples | ) |

Here is the call graph for this function:
Here is the caller graph for this function:

## take()

template<typename T>

GeneratorWrapper< T > Catch::Generators::take | ( | size_t | target,
|  | GeneratorWrapper< T > && | generator )

Here is the call graph for this function:
Here is the caller graph for this function:

## value()

template<typename T, typename DecayedT = std::decay_t<T>>

GeneratorWrapper< DecayedT > Catch::Generators::value | ( | T && | value | ) |

Here is the call graph for this function:
Here is the caller graph for this function:

## values()

template<typename T>

GeneratorWrapper< T > Catch::Generators::values | ( | std::initializer_list< T > | values | ) |

Here is the call graph for this function:
Here is the caller graph for this function: