FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Catch::Generators Namespace Reference

Namespaces

 pf
 

Data Structures

class  GeneratorUntypedBase
 
struct  IGenerator
 
class  SingleValueGenerator
 
class  FixedValuesGenerator
 
class  GeneratorWrapper
 
class  Generators
 
struct  as
 
class  TakeGenerator
 
class  FilterGenerator
 
class  RepeatGenerator
 
class  MapGenerator
 
class  ChunkGenerator
 
class  RandomFloatingGenerator
 
class  RandomIntegerGenerator
 
class  RangeGenerator
 

Typedefs

using GeneratorBasePtr = std::unique_ptr< GeneratorUntypedBase >
 

Functions

template<typename T >
GeneratorWrapper< T > value (T &&value)
 
template<typename T >
GeneratorWrapper< T > values (std::initializer_list< T > values)
 
template<typename... Ts>
GeneratorWrapper< std::tuple
< Ts...> > 
table (std::initializer_list< std::tuple< typename std::decay< Ts >::type...>> 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< T >
 
template<typename T , typename U , typename... Gs>
auto makeGenerators (as< T >, U &&val, Gs...moreGenerators) -> Generators< T >
 
auto acquireGeneratorTracker (SourceLineInfo const &lineInfo) -> IGeneratorTracker &
 
template<typename L >
auto generate (SourceLineInfo const &lineInfo, L const &generatorExpression) -> decltype(std::declval< decltype(generatorExpression())>().get())
 
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 T , typename U , typename Func >
GeneratorWrapper< T > map (Func &&function, GeneratorWrapper< U > &&generator)
 
template<typename T , typename Func >
GeneratorWrapper< T > map (Func &&function, GeneratorWrapper< T > &&generator)
 
template<typename T >
GeneratorWrapper< std::vector
< T > > 
chunk (size_t size, GeneratorWrapper< T > &&generator)
 
template<typename T >
std::enable_if
< std::is_integral< T >::value
&&!std::is_same< T, bool >
::value, GeneratorWrapper< T >
>::type 
random (T a, T b)
 
template<typename T >
std::enable_if
< std::is_floating_point< T >
::value, GeneratorWrapper< T >
>::type 
random (T a, T b)
 
template<typename T >
GeneratorWrapper< T > range (T const &start, T const &end, T const &step)
 
template<typename T >
GeneratorWrapper< T > range (T const &start, T const &end)
 

Typedef Documentation

Function Documentation

auto Catch::Generators::acquireGeneratorTracker ( SourceLineInfo const &  lineInfo) -> IGeneratorTracker &

Referenced by generate().

template<typename T >
GeneratorWrapper<std::vector<T> > Catch::Generators::chunk ( size_t  size,
GeneratorWrapper< T > &&  generator 
)
template<typename T , typename Predicate >
GeneratorWrapper<T> Catch::Generators::filter ( Predicate &&  pred,
GeneratorWrapper< T > &&  generator 
)
template<typename L >
auto Catch::Generators::generate ( SourceLineInfo const &  lineInfo,
L const &  generatorExpression 
) -> decltype(std::declval<decltype(generatorExpression())>().get())
template<typename T , typename... Gs>
auto Catch::Generators::makeGenerators ( GeneratorWrapper< T > &&  generator,
Gs...  moreGenerators 
) -> Generators<T>

Referenced by makeGenerators().

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

References makeGenerators(), and value().

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

References makeGenerators(), and value().

template<typename T , typename U , typename Func >
GeneratorWrapper<T> Catch::Generators::map ( Func &&  function,
GeneratorWrapper< U > &&  generator 
)
template<typename T , typename Func >
GeneratorWrapper<T> Catch::Generators::map ( Func &&  function,
GeneratorWrapper< T > &&  generator 
)
template<typename T >
std::enable_if<std::is_integral<T>::value && !std::is_same<T, bool>::value,GeneratorWrapper<T> >::type Catch::Generators::random ( a,
b 
)
template<typename T >
std::enable_if<std::is_floating_point<T>::value,GeneratorWrapper<T> >::type Catch::Generators::random ( a,
b 
)
template<typename T >
GeneratorWrapper<T> Catch::Generators::range ( T const &  start,
T const &  end,
T const &  step 
)

References Catch::end, and value().

template<typename T >
GeneratorWrapper<T> Catch::Generators::range ( T const &  start,
T const &  end 
)

References Catch::end, and value().

template<typename T >
GeneratorWrapper<T> Catch::Generators::repeat ( size_t  repeats,
GeneratorWrapper< T > &&  generator 
)
template<typename... Ts>
GeneratorWrapper<std::tuple<Ts...> > Catch::Generators::table ( std::initializer_list< std::tuple< typename std::decay< Ts >::type...>>  tuples)

References values().

template<typename T >
GeneratorWrapper<T> Catch::Generators::take ( size_t  target,
GeneratorWrapper< T > &&  generator 
)
template<typename T >
GeneratorWrapper<T> Catch::Generators::values ( std::initializer_list< T >  values)

Referenced by table().