Mock object for use in testing. More...
#include <BundleCore.h>
Public Member Functions | |
| AlarmImpl (ExpirationHandler *h) | |
| virtual | ~AlarmImpl () |
| void | schedule (u_int) |
| How many milliseconds in the future to schedule this alarm. | |
| u_int | time_remaining () const |
| Milliseconds remaining until alarm expires. | |
| void | cancel () |
| Disable the alarm; do not execute the handler. | |
| bool | pending () const |
| Accessors. | |
| bool | cancelled () const |
| Accessors. | |
Public Attributes | |
| bool | pending_ |
| bool | cancelled_ |
Mock object for use in testing.
Definition at line 203 of file BundleCore.h.
| prophet::AlarmImpl::AlarmImpl | ( | ExpirationHandler * | h | ) | [inline] |
Definition at line 206 of file BundleCore.h.
| virtual prophet::AlarmImpl::~AlarmImpl | ( | ) | [inline, virtual] |
Definition at line 209 of file BundleCore.h.
| void prophet::AlarmImpl::cancel | ( | ) | [inline, virtual] |
Disable the alarm; do not execute the handler.
It is expected that the host's timer implementation will cleanup a cancelled Alarm's memory ...
Implements prophet::Alarm.
Definition at line 213 of file BundleCore.h.
| bool prophet::AlarmImpl::cancelled | ( | ) | const [inline, virtual] |
| bool prophet::AlarmImpl::pending | ( | ) | const [inline, virtual] |
| void prophet::AlarmImpl::schedule | ( | u_int | milliseconds | ) | [inline, virtual] |
How many milliseconds in the future to schedule this alarm.
Implements prophet::Alarm.
Definition at line 211 of file BundleCore.h.
Referenced by prophet::BundleCoreTestImpl::create_alarm().
| u_int prophet::AlarmImpl::time_remaining | ( | ) | const [inline, virtual] |
Milliseconds remaining until alarm expires.
Implements prophet::Alarm.
Definition at line 212 of file BundleCore.h.
Definition at line 216 of file BundleCore.h.
Definition at line 216 of file BundleCore.h.
1.6.3