Class returning a throwable depending on the parameters passed to a method. More...
Public Member Functions | |
ResponseVector1 (const String &aName, VerifiableList *parent) | |
Construct a new empty vector. | |
void | add (Throwable *throwable, const P1 &p1, unsigned count) |
Adds a throwable. | |
void | add (Throwable *throwable, const ConstraintHolder< P1 > &p1, unsigned count) |
Adds a throwable. | |
void | add (const R &r, const P1 &p1, unsigned count) |
Adds a return value. | |
void | add (const R &r, const ConstraintHolder< P1 > &p1, unsigned count) |
Adds a return value. | |
void | reset () |
Removes all the objects from the list. | |
bool | find (Throwable *&throwable, const P1 &p1) |
Finds a throwable for a set of parameters. | |
bool | find (R &r, const P1 &p1) |
Finds a return value for a set of parameters. |
Class returning a throwable depending on the parameters passed to a method.
Definition at line 138 of file ResponseVector1.h.
mockpp::ResponseVector1< R, P1 >::ResponseVector1 | ( | const String & | aName, | |
VerifiableList * | parent | |||
) | [inline] |
Construct a new empty vector.
aName | Label used to identify vector | |
parent | parent verifiable |
Definition at line 146 of file ResponseVector1.h.
void mockpp::ResponseVector1< R, P1 >::add | ( | const R & | r, | |
const ConstraintHolder< P1 > & | p1, | |||
unsigned | count | |||
) | [inline] |
Adds a return value.
r | the return value | |
p1 | the parameter 1 upon which to return | |
count | the number of times the object may be used |
Definition at line 194 of file ResponseVector1.h.
void mockpp::ResponseVector1< R, P1 >::add | ( | const R & | r, | |
const P1 & | p1, | |||
unsigned | count | |||
) | [inline] |
Adds a return value.
r | the return value | |
p1 | the parameter 1 upon which to return | |
count | the number of times the object may be used |
Definition at line 183 of file ResponseVector1.h.
void mockpp::ResponseVector1< R, P1 >::add | ( | Throwable * | throwable, | |
const ConstraintHolder< P1 > & | p1, | |||
unsigned | count | |||
) | [inline] |
Adds a throwable.
t | the throwable | |
p1 | the parameter 1 upon which to return | |
count | the number of times the object may be used |
Reimplemented from mockpp::ResponseThrowableVector1< P1 >.
Definition at line 168 of file ResponseVector1.h.
void mockpp::ResponseVector1< R, P1 >::add | ( | Throwable * | throwable, | |
const P1 & | p1, | |||
unsigned | count | |||
) | [inline] |
Adds a throwable.
t | the throwable | |
p1 | the parameter 1 upon which to return | |
count | the number of times the object may be used |
Reimplemented from mockpp::ResponseThrowableVector1< P1 >.
Definition at line 155 of file ResponseVector1.h.
bool mockpp::ResponseVector1< R, P1 >::find | ( | R & | r, | |
const P1 & | p1 | |||
) | [inline] |
Finds a return value for a set of parameters.
r | the value | |
p1 | the parameter 1 upon which to return |
Definition at line 224 of file ResponseVector1.h.
bool mockpp::ResponseVector1< R, P1 >::find | ( | Throwable *& | throwable, | |
const P1 & | p1 | |||
) | [inline] |
Finds a throwable for a set of parameters.
t | the throwable | |
p1 | the parameter 1 upon which to return |
Reimplemented from mockpp::ResponseThrowableVector1< P1 >.
Definition at line 211 of file ResponseVector1.h.