24 #ifndef PPL_Pending_List_defs_hh
25 #define PPL_Pending_List_defs_hh 1
33 template <
typename Traits>
49 iterator
insert(
const typename Traits::Threshold& deadline,
57 iterator
erase(iterator position);
79 #endif // !defined(PPL_Pending_List_defs_hh)
Abstract base class for handlers of the watchdog events.
bool empty() const
Returns true if and only if the list is empty.
An ordered list for recording pending watchdog events.
EList< Pending_Element< typename Traits::Threshold > >::const_iterator const_iterator
A const iterator to traverse the list.
EList< Pending_Element< typename Traits::Threshold > > free_list
A class providing iterators for embedded lists.
iterator erase(iterator position)
Removes the element pointed to by position, returning an iterator pointing to the next element...
bool OK() const
Checks if all the invariants are satisfied.
iterator end()
Returns an iterator pointing one past the last element in the list.
EList< Pending_Element< typename Traits::Threshold > > active_list
EList< Pending_Element< typename Traits::Threshold > >::iterator iterator
A non-const iterator to traverse the list.
A simple kind of embedded list (i.e., a doubly linked objects where the links are embedded in the obj...
iterator begin()
Returns an iterator pointing to the beginning of the list.
iterator insert(const typename Traits::Threshold &deadline, const Handler &handler, bool &expired_flag)
Inserts a new Pending_Element object with the given attributes.
~Pending_List()
Destructor.
Pending_List()
Constructs an empty list.