mockpp::VerifiableList Class Reference

A collection of verifiable objects which are verify()ed together. More...

Inheritance diagram for mockpp::VerifiableList:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 VerifiableList (const String &name, VerifiableList *parent)
 Constructs the expectation.

Protected Member Functions

virtual void addVerifiable (Verifiable *vf)
 Adds another verifiable object to the list.
void removeVerifiable (Verifiable *vf)
 Removes a verifiable object from the list.
bool hasVerifiable (Verifiable *vf) const
 Tests of a verifiable object is in the list.
virtual unsigned numVerifiables () const
 Gets the number of verifiable sub-objects in the list.
virtual VerifiablegetVerifiable (unsigned idx)
 Gets a pointer to a verifiable sub-object.
virtual void clearVerifiables ()
 Removes all verifiable fields from the list.

Friends

class Verifier
 Throws an AssertionFailedException if any expectations have not been met.
class Verifiable

Detailed Description

A collection of verifiable objects which are verify()ed together.

Definition at line 47 of file VerifiableList.h.


Constructor & Destructor Documentation

mockpp::VerifiableList::VerifiableList ( const String name,
VerifiableList parent 
)

Constructs the expectation.

Parameters:
name human readable description about the expectation
parent parent verifiable

Definition at line 44 of file VerifiableList.cpp.


Member Function Documentation

void mockpp::VerifiableList::addVerifiable ( Verifiable vf  )  [protected, virtual]

Adds another verifiable object to the list.

Parameters:
vf pointer to the verifiable object

Definition at line 50 of file VerifiableList.cpp.

Verifiable * mockpp::VerifiableList::getVerifiable ( unsigned  idx  )  [protected, virtual]

Gets a pointer to a verifiable sub-object.

Parameters:
idx index of object in the list
Returns:
pointer to object or 0 when index too high

Reimplemented from mockpp::Verifiable.

Definition at line 87 of file VerifiableList.cpp.

bool mockpp::VerifiableList::hasVerifiable ( Verifiable vf  )  const [protected]

Tests of a verifiable object is in the list.

Parameters:
vf pointer to the verifiable object

Definition at line 67 of file VerifiableList.cpp.

unsigned mockpp::VerifiableList::numVerifiables (  )  const [protected, virtual]

Gets the number of verifiable sub-objects in the list.

Returns:
number of objects

Reimplemented from mockpp::Verifiable.

Definition at line 75 of file VerifiableList.cpp.

void mockpp::VerifiableList::removeVerifiable ( Verifiable vf  )  [protected]

Removes a verifiable object from the list.

Parameters:
vf pointer to the verifiable object

Definition at line 57 of file VerifiableList.cpp.


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

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