summaryrefslogtreecommitdiff
path: root/src/events_ds.h
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2020-02-18 18:02:29 +0100
committerAndré Nusser <andre.nusser@googlemail.com>2020-02-23 13:46:28 +0100
commit63e5ab8fdbfac2553c79a4c3dc03039875d581c8 (patch)
treeb6053510e8da96ff4dee42771cff47dbdb0db45f /src/events_ds.h
parent2261c525f34f6df8ded520c2fa6278c9799d6997 (diff)
Scratch the pointer returning get and instead add getType.
Diffstat (limited to 'src/events_ds.h')
-rw-r--r--src/events_ds.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/events_ds.h b/src/events_ds.h
index 2e8fa43..0a93fe9 100644
--- a/src/events_ds.h
+++ b/src/events_ds.h
@@ -72,9 +72,9 @@ public:
template <typename T>
T& get(EventID event_id);
- //! Returns a pointer to the event with id begin event_id. As Event has a
- //! member variable that carries the type, it can be then casted appropriately.
- Event* get(EventID event_id);
+ //! In case we don't know the type of an event, we can use this function to
+ //! retrieve it and then use get<Type>(...) to get the event.
+ Event::Type getType(EventID event_id) const;
//! Returns the number of all events of a certain channel.
std::size_t numberOfEvents(channel_t ch) const;