mockpp::ResponseThrowableVector3< P1, P2, P3 > Class Template Reference

Class returning a throwable depending on the parameters passed to a method. More...

Inheritance diagram for mockpp::ResponseThrowableVector3< P1, P2, P3 >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ResponseThrowableVector3 (const String &aName, VerifiableList *parent)
 Construct a new empty vector.
virtual ~ResponseThrowableVector3 ()
 Destroys the vector.
void add (Throwable *throwable, const P1 &p1, const P2 &p2, const P3 &p3, unsigned count)
 Adds a throwable.
void add (Throwable *throwable, const ConstraintHolder< P1 > &p1, const ConstraintHolder< P2 > &p2, const ConstraintHolder< P3 > &p3, unsigned count)
 Adds a throwable.
void reset ()
 Removes all the objects from the list.
bool find (Throwable *&throwable, const P1 &p1, const P2 &p2, const P3 &p3)
 Finds a throwable for a set of parameters.

Protected Attributes

std::vector< Constraint< P1 > * > t1vec
 shared internal member
std::vector< Constraint< P2 > * > t2vec
 shared internal member
std::vector< Constraint< P3 > * > t3vec
 shared internal member

Detailed Description

template<typename P1, typename P2, typename P3>
class mockpp::ResponseThrowableVector3< P1, P2, P3 >

Class returning a throwable depending on the parameters passed to a method.

Definition at line 46 of file ResponseVector3.h.


Constructor & Destructor Documentation

template<typename P1 , typename P2 , typename P3 >
mockpp::ResponseThrowableVector3< P1, P2, P3 >::ResponseThrowableVector3 ( const String aName,
VerifiableList parent 
) [inline]

Construct a new empty vector.

Parameters:
aName Label used to identify vector
parent parent verifiable

Definition at line 55 of file ResponseVector3.h.


Member Function Documentation

template<typename P1 , typename P2 , typename P3 >
void mockpp::ResponseThrowableVector3< P1, P2, P3 >::add ( Throwable throwable,
const ConstraintHolder< P1 > &  p1,
const ConstraintHolder< P2 > &  p2,
const ConstraintHolder< P3 > &  p3,
unsigned  count 
) [inline]

Adds a throwable.

Parameters:
throwable the throwable
p1 the parameter 1 upon which to return
p2 the parameter 2 upon which to return
p3 the parameter 3 upon which to return
count the number of times the object may be used

Reimplemented in mockpp::ResponseVector3< R, P1, P2, P3 >.

Definition at line 88 of file ResponseVector3.h.

template<typename P1 , typename P2 , typename P3 >
void mockpp::ResponseThrowableVector3< P1, P2, P3 >::add ( Throwable throwable,
const P1 &  p1,
const P2 &  p2,
const P3 &  p3,
unsigned  count 
) [inline]

Adds a throwable.

Parameters:
t the throwable
p1 the parameter 1 upon which to return
p2 the parameter 2 upon which to return
p3 the parameter 3 upon which to return
count the number of times the object may be used

Reimplemented in mockpp::ResponseVector3< R, P1, P2, P3 >.

Definition at line 73 of file ResponseVector3.h.

template<typename P1 , typename P2 , typename P3 >
bool mockpp::ResponseThrowableVector3< P1, P2, P3 >::find ( Throwable *&  throwable,
const P1 &  p1,
const P2 &  p2,
const P3 &  p3 
) [inline]

Finds a throwable for a set of parameters.

Parameters:
t the throwable
p1 the parameter 1 upon which to return
p2 the parameter 2 upon which to return
p3 the parameter 3 upon which to return
Returns:
true: throwable found for parameters

Reimplemented in mockpp::ResponseVector3< R, P1, P2, P3 >.

Definition at line 131 of file ResponseVector3.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines

Generated on Tue Jan 5 09:49:14 2010 for mockpp by  doxygen 1.6.1