PPL
1.2
|
A class for pending watchdog events with embedded links. More...
#include <Pending_Element_defs.hh>
Public Member Functions | |
Pending_Element (const Threshold &deadline, const Handler &handler, bool &expired_flag) | |
Constructs an element with the given attributes. More... | |
void | assign (const Threshold &deadline, const Handler &handler, bool &expired_flag) |
Modifies *this so that it has the given attributes. More... | |
const Threshold & | deadline () const |
Returns the deadline of the event. More... | |
const Handler & | handler () const |
Returns the handler associated to the event. More... | |
bool & | expired_flag () const |
Returns a reference to the "event-expired" flag. More... | |
bool | OK () const |
Checks if all the invariants are satisfied. More... | |
![]() | |
Doubly_Linked_Object () | |
Default constructor. More... | |
Doubly_Linked_Object (Doubly_Linked_Object *f, Doubly_Linked_Object *b) | |
Creates a chain element with forward link f and backward link b . More... | |
void | insert_before (Doubly_Linked_Object &y) |
Inserts y before *this . More... | |
void | insert_after (Doubly_Linked_Object &y) |
Inserts y after *this . More... | |
Doubly_Linked_Object * | erase () |
Erases *this from the chain and returns a pointer to the next element. More... | |
~Doubly_Linked_Object () | |
Erases *this from the chain. More... | |
Private Attributes | |
Threshold | d |
The deadline of the event. More... | |
const Handler * | p_h |
A pointer to the handler associated to the event. More... | |
bool * | p_f |
A pointer to a flag saying whether the event has already expired or not. More... | |
A class for pending watchdog events with embedded links.
Each pending watchdog event is characterized by a deadline (a positive time interval), an associated handler that will be invoked upon event expiration, and a Boolean flag that indicates whether the event has already expired or not.
Definition at line 39 of file Pending_Element_defs.hh.
|
inline |
Constructs an element with the given attributes.
Definition at line 43 of file Pending_Element_inlines.hh.
References Parma_Polyhedra_Library::Implementation::Watchdog::Pending_Element< Threshold >::OK().
|
inline |
Modifies *this
so that it has the given attributes.
Definition at line 52 of file Pending_Element_inlines.hh.
|
inline |
Returns the deadline of the event.
Definition at line 63 of file Pending_Element_inlines.hh.
|
inline |
Returns a reference to the "event-expired" flag.
Definition at line 75 of file Pending_Element_inlines.hh.
|
inline |
Returns the handler associated to the event.
Definition at line 69 of file Pending_Element_inlines.hh.
|
inline |
Checks if all the invariants are satisfied.
Definition at line 37 of file Pending_Element_inlines.hh.
Referenced by Parma_Polyhedra_Library::Implementation::Watchdog::Pending_Element< Threshold >::Pending_Element().
|
private |
The deadline of the event.
Definition at line 66 of file Pending_Element_defs.hh.
|
private |
A pointer to a flag saying whether the event has already expired or not.
Definition at line 72 of file Pending_Element_defs.hh.
|
private |
A pointer to the handler associated to the event.
Definition at line 69 of file Pending_Element_defs.hh.