quickcheck::Property< A > Class Template Reference

1-argument property. More...

#include <Property.hh>

Inheritance diagram for quickcheck::Property< A >:

quickcheck::PropertyBase< A, B, C, D, E >

List of all members.

Public Member Functions

virtual void addFixed (const A &a)

Private Member Functions

virtual bool accepts (const A &a)
virtual const std::string classify (const A &a)
virtual void generateInput (size_t n, A &a)
virtual bool holdsFor (const A &a)=0
virtual bool isTrivialFor (const A &a)
bool _accepts (const A &a, const Unit &b, const Unit &c, const Unit &d, const Unit &e)
const std::string _classify (const A &a, const Unit &b, const Unit &c, const Unit &d, const Unit &e)
void _generateInput (size_t n, A &a, Unit &b, Unit &c, Unit &d, Unit &e)
bool _holdsFor (const A &a, const Unit &b, const Unit &c, const Unit &d, const Unit &e)
bool _isTrivialFor (const A &a, const Unit &b, const Unit &c, const Unit &d, const Unit &e)


Detailed Description

template<class A>
class quickcheck::Property< A >

1-argument property.

This class models a property (see PropertyBase) with 1-argument input.

Template Parameters:
A the type of the only argument

Member Function Documentation

template<class A>
void quickcheck::Property< A >::addFixed ( const A &  a  )  [inline, virtual]

1-argument counterpart of Property::addFixed.

Parameters:
a the first argument of the test case

template<class A>
bool quickcheck::Property< A >::accepts ( const A &  a  )  [inline, private, virtual]

Tells whether or not this property should accept given arguments.

1-argument counterpart of Property::accepts.

Parameters:
a the only argument

template<class A>
const std::string quickcheck::Property< A >::classify ( const A &  a  )  [inline, private, virtual]

Classifies input to allow observation of input distribution.

1-argument counterpart of Property::classify.

Parameters:
a the only argument

template<class A>
void quickcheck::Property< A >::generateInput ( size_t  n,
A &  a 
) [inline, private, virtual]

Generates input randomly.

1-argument counterpart of Property::generateInput.

Parameters:
n the size hint
a the only argument

template<class A>
virtual bool quickcheck::Property< A >::holdsFor ( const A &  a  )  [private, pure virtual]

Tells whether or not this property holds for the given input.

1-argument counterpart of Property::holdsFor.

Parameters:
a the only argument

template<class A>
bool quickcheck::Property< A >::isTrivialFor ( const A &  a  )  [inline, private, virtual]

Tells whether or not the property is trivially true for the given input.

1-argument counterpart of Property::isTrivialFor.

Parameters:
a the only argument

template<class A>
bool quickcheck::Property< A >::_accepts ( const A &  a,
const Unit b,
const Unit c,
const Unit d,
const Unit e 
) [inline, private]

template<class A>
const std::string quickcheck::Property< A >::_classify ( const A &  a,
const Unit b,
const Unit c,
const Unit d,
const Unit e 
) [inline, private]

template<class A>
void quickcheck::Property< A >::_generateInput ( size_t  n,
A &  a,
Unit b,
Unit c,
Unit d,
Unit e 
) [inline, private]

template<class A>
bool quickcheck::Property< A >::_holdsFor ( const A &  a,
const Unit b,
const Unit c,
const Unit d,
const Unit e 
) [inline, private]

template<class A>
bool quickcheck::Property< A >::_isTrivialFor ( const A &  a,
const Unit b,
const Unit c,
const Unit d,
const Unit e 
) [inline, private]


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

Generated on Thu Apr 9 14:09:57 2009 for QuickCheck++ by  doxygen 1.5.6