Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
oneof_generator.h File Reference

(ac01635f461bd9f211d89f6eea833d9d928fd113)

#include "../../namespaces.h"
#include "../../utilities/statistics/percentages.h"
#include "../../utilities/semantics/generator_handler.h"
#include <catch/catch.hpp>
#include <vector>
#include <random>
#include <algorithm>
#include <numeric>
+ Include dependency graph for oneof_generator.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QDOC_CATCH_GENERATORS_ROOT_NAMESPACE::QDOC_CATCH_GENERATORS_PRIVATE_NAMESPACE::OneOfGenerator< T >
 

Namespaces

namespace  QDOC_CATCH_GENERATORS_ROOT_NAMESPACE
 
namespace  QDOC_CATCH_GENERATORS_ROOT_NAMESPACE::QDOC_CATCH_GENERATORS_PRIVATE_NAMESPACE
 \variable PathGeneratorConfiguration::multi_device_path_probability
 

Functions

template<typename T >
Catch::Generators::GeneratorWrapper< T > QDOC_CATCH_GENERATORS_ROOT_NAMESPACE::oneof (std::vector< Catch::Generators::GeneratorWrapper< T > > &&generators, const std::vector< double > &weights)
 Returns a generator whose set of elements is the union of the set of elements of the generators in generators.
 
template<typename T >
Catch::Generators::GeneratorWrapper< T > QDOC_CATCH_GENERATORS_ROOT_NAMESPACE::uniform_oneof (std::vector< Catch::Generators::GeneratorWrapper< T > > &&generators)
 Returns a generator whose set of elements is the union of the set of elements of the generators in generators and in which the distribution of the generated elements is uniform over generators.
 
template<typename T >
Catch::Generators::GeneratorWrapper< T > QDOC_CATCH_GENERATORS_ROOT_NAMESPACE::uniformly_valued_oneof (std::vector< Catch::Generators::GeneratorWrapper< T > > &&generators, const std::vector< std::size_t > &amounts)
 Returns a generator whose set of elements is the union of the set of elements of the generators in generators and in which the distribution of the generated elements is uniform over the elements of generators.