A handle which can read the latest event on a topic.
More...
#include <switchboard.hpp>
|
| reader (topic &topic_) |
|
ptr< const specific_event > | get_ro_nullable () const noexcept |
| Gets a "read-only" copy of the latest value. More...
|
|
ptr< const specific_event > | get_ro () const |
| Gets a non-null "read-only" copy of the latest value. More...
|
|
ptr< specific_event > | get_rw () const |
| Gets a non-null mutable copy of the latest value. More...
|
|
template<typename specific_event>
class ILLIXR::switchboard::reader< specific_event >
A handle which can read the latest event on a topic.
◆ get_ro()
template<typename specific_event >
Gets a non-null "read-only" copy of the latest value.
- Exceptions
-
<tt>runtime_error</tt> | If no event is on the topic yet. |
Otherwise, no event on the topic yet
◆ get_ro_nullable()
template<typename specific_event >
Gets a "read-only" copy of the latest value.
This will return null if no event is on the topic yet.
◆ get_rw()
template<typename specific_event >
Gets a non-null mutable copy of the latest value.
- Exceptions
-
<tt>runtime_error</tt> | If no event is on the topic yet. |
The documentation for this class was generated from the following file: