ManaPlus
Functions
Catch::Generators Namespace Reference

Functions

template<typename T >
CompositeGenerator< T > between (T from, T to)
 
template<typename T >
CompositeGenerator< T > values (T val1, T val2)
 
template<typename T >
CompositeGenerator< T > values (T val1, T val2, T val3)
 
template<typename T >
CompositeGenerator< T > values (T val1, T val2, T val3, T val4)
 

Function Documentation

◆ between()

template<typename T >
CompositeGenerator<T> Catch::Generators::between ( from,
to 
)

Definition at line 2465 of file catch.hpp.

2465  {
2466  CompositeGenerator<T> generators;
2467  generators.add( new BetweenGenerator<T>( from, to ) );
2468  return generators;
2469  }

References Catch::CompositeGenerator< T >::add().

◆ values() [1/3]

template<typename T >
CompositeGenerator<T> Catch::Generators::values ( val1,
val2 
)

Definition at line 2472 of file catch.hpp.

2472  {
2473  CompositeGenerator<T> generators;
2474  ValuesGenerator<T>* valuesGen = new ValuesGenerator<T>();
2475  valuesGen->add( val1 );
2476  valuesGen->add( val2 );
2477  generators.add( valuesGen );
2478  return generators;
2479  }

References Catch::CompositeGenerator< T >::add(), and Catch::ValuesGenerator< T >::add().

Referenced by loadEffect().

◆ values() [2/3]

template<typename T >
CompositeGenerator<T> Catch::Generators::values ( val1,
val2,
val3 
)

Definition at line 2482 of file catch.hpp.

2482  {
2483  CompositeGenerator<T> generators;
2484  ValuesGenerator<T>* valuesGen = new ValuesGenerator<T>();
2485  valuesGen->add( val1 );
2486  valuesGen->add( val2 );
2487  valuesGen->add( val3 );
2488  generators.add( valuesGen );
2489  return generators;
2490  }

References Catch::CompositeGenerator< T >::add(), and Catch::ValuesGenerator< T >::add().

◆ values() [3/3]

template<typename T >
CompositeGenerator<T> Catch::Generators::values ( val1,
val2,
val3,
val4 
)

Definition at line 2493 of file catch.hpp.

2493  {
2494  CompositeGenerator<T> generators;
2495  ValuesGenerator<T>* valuesGen = new ValuesGenerator<T>();
2496  valuesGen->add( val1 );
2497  valuesGen->add( val2 );
2498  valuesGen->add( val3 );
2499  valuesGen->add( val4 );
2500  generators.add( valuesGen );
2501  return generators;
2502  }

References Catch::CompositeGenerator< T >::add(), and Catch::ValuesGenerator< T >::add().