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

#include <vectors.h>

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

Public Member Functions

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

Detailed Description

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

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

Template Parameters
Elementtype of vectors elements generated by strategy.

Constructor & Destructor Documentation

template<typename Element>
cauldron::Vectors< Element >::Vectors ( const SizesStrategy sizes,
const ElementsStrategy elements 
)
inline
Parameters
sizesstrategy to generate vectors sizes from.
elementsstrategy to generate vectors elements from.
template<typename Element>
cauldron::Vectors< Element >::Vectors ( const Vectors< Element > &  vectors)
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::vector<Element> cauldron::Vectors< Element >::operator() ( ) const
inlineoverridevirtual

Generates pseudo-random std::vector instance.

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


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