Utils::CalitkoMocks::BoundFunctionBase Class Reference

#include <BoundFunction.h> [code]

List of all members.


Detailed Description

Base functionality for the BoundFunction template.

Definition at line 38 of file BoundFunction.h.

Public Member Functions

 BoundFunctionBase ()
virtual ~BoundFunctionBase ()
void addExpectation (ExpectedFunctionBase *)
void setContext (const std::string &expectationString_, const SourceLine &sourceLine_)
virtual void call ()=0
void checkCalled ()

Protected Member Functions

void fail (const std::string &reason)
void checkExpectations ()

Protected Attributes

bool wasCalled
std::string expectationString
SourceLine sourceLine

Private Types

typedef std::list< ExpectedFunctionBase * > Expectations

Private Attributes

Expectations expectations


Member Typedef Documentation

typedef std::list<ExpectedFunctionBase *> Utils::CalitkoMocks::BoundFunctionBase::Expectations [private]
 

Definition at line 63 of file BoundFunction.h.


Constructor & Destructor Documentation

BoundFunctionBase::BoundFunctionBase  ) 
 

Definition at line 29 of file BoundFunction.cpp.

BoundFunctionBase::~BoundFunctionBase  )  [virtual]
 

Definition at line 34 of file BoundFunction.cpp.


Member Function Documentation

void BoundFunctionBase::addExpectation ExpectedFunctionBase  ) 
 

Definition at line 53 of file BoundFunction.cpp.

virtual void Utils::CalitkoMocks::BoundFunctionBase::call  )  [pure virtual]
 

void BoundFunctionBase::checkCalled  ) 
 

Definition at line 65 of file BoundFunction.cpp.

void BoundFunctionBase::checkExpectations  )  [protected]
 

Definition at line 58 of file BoundFunction.cpp.

void BoundFunctionBase::fail const std::string &  reason  )  [protected]
 

Definition at line 45 of file BoundFunction.cpp.

void BoundFunctionBase::setContext const std::string &  expectationString_,
const SourceLine &  sourceLine_
 

Definition at line 38 of file BoundFunction.cpp.


Member Data Documentation

Expectations Utils::CalitkoMocks::BoundFunctionBase::expectations [private]
 

Definition at line 64 of file BoundFunction.h.

std::string Utils::CalitkoMocks::BoundFunctionBase::expectationString [protected]
 

Definition at line 57 of file BoundFunction.h.

SourceLine Utils::CalitkoMocks::BoundFunctionBase::sourceLine [protected]
 

Definition at line 58 of file BoundFunction.h.

bool Utils::CalitkoMocks::BoundFunctionBase::wasCalled [protected]
 

Definition at line 54 of file BoundFunction.h.


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