#include <booleans.h>
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 |
Strategy which generates pseudo-random bool
values with defined probability.
|
explicit |
probability | how often true values will be generated compared to false values. |
|
overridevirtual |
Generates pseudo-random bool
value.
Implements cauldron::Strategy< bool >.