#include <builder.h>
Public Member Functions | |
Builder (const cauldron::Strategy< Value > &...strategy) | |
Builder (const Builder< Object, Value...> &builder) | |
Object | operator() () const override |
Public Member Functions inherited from cauldron::CloneHelper< Object, Builder< Object, Value...> > | |
std::unique_ptr< Strategy < Object > > | clone () const override |
Public Member Functions inherited from cauldron::Strategy< Object > | |
virtual Union< Object > | operator|| (const Strategy< Object > &strategy) const |
virtual Union< Object > | operator|| (const Union< Object > &strategy) const |
virtual Filtered< Object > | filter (const Requirement< Object > &requirement) const |
virtual Mapped< Object > | map (const Converter< Object > &converter) const |
Strategy which generates Object
instances with constructor arguments generated from corresponding strategies.
Object
should have appropriate constructor so types and order of passed strategies agree with types and order of constructor parameters or compile-time error will arise. Object | type of objects generated by strategy. |
|
inlineexplicit |
strategy | strategy to generate constructor arguments from. |
|
inline |
Default copy constructor doesn't fit since we're using std::unique_ptr
as class members which is not copyable.
|
inlineoverridevirtual |
Generates pseudo-random Object
instance.
Implements cauldron::Strategy< Object >.