The client counter to track occurrences based on a shared counter. More...
Public Member Functions | |
| TrackingCounterClient (const String &name, TrackingCounterMaster &master) | |
| Constructs the expectation. | |
| virtual | ~TrackingCounterClient () |
| Destructs the expectation. | |
| unsigned | inc () |
| Stores and returns the current master count value. | |
| unsigned | operator++ () |
| Stores and returns the current master count value. | |
| unsigned | operator++ (int) |
| Stores and returns the current master count value. | |
| virtual void | verify () |
| Verify that the amount of Value is within the allowed bounds. | |
| virtual void | clearActual () |
| Resets the internal state to reflect that there is no actual value set. | |
| virtual unsigned | getActual () const |
| Gets the number of actual Value. | |
| unsigned | numTags () const |
| Gets the number of counter transfers from the master. | |
| unsigned | getTag (unsigned index) const |
| Gets the value of a conter transfer. | |
The client counter to track occurrences based on a shared counter.
This class stores all the actual master counter values when invoked.
Definition at line 189 of file TrackingCounter.h.
| mockpp::TrackingCounterClient::TrackingCounterClient | ( | const String & | name, | |
| TrackingCounterMaster & | master | |||
| ) |
Constructs the expectation.
| name | human readable description about the expectation | |
| master | the according master counter |
Definition at line 206 of file TrackingCounter.cpp.
| unsigned mockpp::TrackingCounterClient::getActual | ( | ) | const [virtual] |
Gets the number of actual Value.
Implements mockpp::TrackingCounterBase.
Definition at line 228 of file TrackingCounter.cpp.
| unsigned mockpp::TrackingCounterClient::operator++ | ( | int | ) | [inline] |
Stores and returns the current master count value.
Replacement for
Definition at line 218 of file TrackingCounter.h.
| unsigned mockpp::TrackingCounterClient::operator++ | ( | ) | [inline] |
Stores and returns the current master count value.
Replacement for
Definition at line 210 of file TrackingCounter.h.
| void mockpp::TrackingCounterClient::verify | ( | ) | [virtual] |
Verify that the amount of Value is within the allowed bounds.
If it fails, an AssertionFailedError is thrown
Implements mockpp::AbstractExpectation< unsigned >.
Definition at line 248 of file TrackingCounter.cpp.
1.6.1