cauldron  0.0.0
 All Classes Namespaces Files Functions Variables Typedefs
Public Member Functions | List of all members
cauldron::Sets< Element > Class Template Reference

#include <sets.h>

Inheritance diagram for cauldron::Sets< Element >:
Inheritance graph
[legend]
Collaboration diagram for cauldron::Sets< Element >:
Collaboration graph
[legend]

Public Member Functions

 Sets (const SizesStrategy &sizes, const ElementsStrategy &elements)
 
 Sets (const Sets< Element > &sets)
 
std::set< Element > operator() () const override
 
- Public Member Functions inherited from cauldron::CloneHelper< std::set< Element >, Sets< Element > >
std::unique_ptr< Strategy
< std::set< Element > > > 
clone () const override
 
- Public Member Functions inherited from cauldron::Strategy< std::set< Element > >
virtual Union< std::set
< Element > > 
operator|| (const Strategy< std::set< Element > > &strategy) const
 
virtual Union< std::set
< Element > > 
operator|| (const Union< std::set< Element > > &strategy) const
 
virtual Filtered< std::set
< Element > > 
filter (const Requirement< std::set< Element > > &requirement) const
 
virtual Mapped< std::set
< Element > > 
map (const Converter< std::set< Element > > &converter) const
 

Detailed Description

template<typename Element>
class cauldron::Sets< Element >

Strategy which generates std::set instances with sizes and elements generated from corresponding strategies.

Template Parameters
Elementtype of sets elements generated by strategy.

Constructor & Destructor Documentation

template<typename Element>
cauldron::Sets< Element >::Sets ( const SizesStrategy sizes,
const ElementsStrategy elements 
)
inline
Parameters
sizesstrategy to generate sets sizes from.
elementsstrategy to generate sets elements from.
template<typename Element>
cauldron::Sets< Element >::Sets ( const Sets< Element > &  sets)
inline

Default copy constructor doesn't fit since we're using std::unique_ptr as class members which is not copyable.

Member Function Documentation

template<typename Element>
std::set<Element> cauldron::Sets< Element >::operator() ( ) const
inlineoverridevirtual

Generates pseudo-random std::set instance.

Implements cauldron::Strategy< std::set< Element > >.


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