Abstract class for time-based objects. More...
#include <Timeable.h>

Public Member Functions | |
| virtual void | start () |
| Starts/restarts the chronometer. | |
| virtual void | stop () |
| Interrupts the chronometer and resets to zero. | |
| virtual void | pause () |
| Interrupts the chronometer. | |
| virtual void | resume () |
| Resumes process. | |
| virtual void | togglePause () |
| Toggles pause/unpause. | |
| virtual void | setTime (float time)=0 |
| Forces current time (in seconds). | |
| virtual void | addTime (float time)=0 |
| Adds/subtracts time to the chronometer. | |
| virtual bool | isRunning () const =0 |
| Returns true iff currently running. | |
Protected Member Functions | |
| virtual void | _setRunning (bool isRunning)=0 |
Abstract class for time-based objects.
|
pure virtual |
Adds/subtracts time to the chronometer.
Implemented in pq::AbstractChronometer, and pq::AbstractOscillator.
|
pure virtual |
Returns true iff currently running.
Implemented in pq::AbstractChronometer, and pq::AbstractOscillator.
|
virtual |
Interrupts the chronometer.
Reimplemented in pq::AbstractChronometer.
|
virtual |
Resumes process.
Reimplemented in pq::AbstractChronometer.
|
pure virtual |
Forces current time (in seconds).
Implemented in pq::AbstractChronometer, pq::AbstractOscillator, pq::Alarm, and pq::Ramp.
|
virtual |
Starts/restarts the chronometer.
Reimplemented in pq::AbstractTimer, and pq::Ramp.