template <class Event, class Compare>
Ase::EventList class final

Maintain an array of unique Event structures with change notification.

Public functions

auto begin() const →  CIter
Create a read-only copy of this EventList (possibly cached).
void clear_silently()
Return the numberof elements.
auto copy() const →  EventVector
Const iterator that points one past the last element.
auto end() const →  CIter
Const iterator that points to the first element.
auto first() const →  const Event*
Return pointer to element that is >= event or nullptr.
auto last() const →  const Event*
Return first element or nullptr.
auto lookup(const Event& event) const →  const Event*
Return true if event was removed, notifies.
auto lookup_after(const Event& event) const →  const Event*
Return pointer to matching event or nullptr.
template <class OrderedEventList>
auto ordered_events() →  OrderedEventList::ConstP
Clear list without notification.
auto remove(const Event& event, Event* removed = nullptr) →  bool
Only replace event, notifies.
auto replace(const Event& event, Event* replaced = nullptr) →  bool
Insert or replace event, notifies.
auto size() const →  size_t
Return last element or nullptr.