cauldron  0.0.0
 All Classes Namespaces Files Functions Variables Typedefs
Public Member Functions | List of all members
cauldron::Booleans Class Reference

#include <booleans.h>

Inheritance diagram for cauldron::Booleans:
Inheritance graph
[legend]
Collaboration diagram for cauldron::Booleans:
Collaboration graph
[legend]

Public Member Functions

 Booleans (double probability=0.5)
 
bool operator() () const override
 
- Public Member Functions inherited from cauldron::CloneHelper< bool, Booleans >
std::unique_ptr< Strategy< bool > > clone () const override
 
- Public Member Functions inherited from cauldron::Strategy< bool >
virtual Union< bool > operator|| (const Strategy< bool > &strategy) const
 
virtual Union< bool > operator|| (const Union< bool > &strategy) const
 
virtual Filtered< bool > filter (const Requirement< bool > &requirement) const
 
virtual Mapped< bool > map (const Converter< bool > &converter) const
 

Detailed Description

Strategy which generates pseudo-random bool values with defined probability.

Constructor & Destructor Documentation

cauldron::Booleans::Booleans ( double  probability = 0.5)
explicit
Parameters
probabilityhow often true values will be generated compared to false values.

Member Function Documentation

bool cauldron::Booleans::operator() ( ) const
overridevirtual

Generates pseudo-random bool value.

Implements cauldron::Strategy< bool >.


The documentation for this class was generated from the following files: