Skip to content

Class ILLIXR::switchboard::reader

template <typename Specific_event>

ClassList > ILLIXR > switchboard > reader

A handle which can read the latest event on a topic.

  • #include <switchboard.hpp>

Public Functions

Type Name
ptr< const Specific_event > get_ro () const
Gets a non-null "read-only" copy of the latest value.
ptr< const Specific_event > get_ro_nullable () noexcept const
Gets a "read-only" copy of the latest value.
ptr< Specific_event > get_rw () const
Gets a non-null mutable copy of the latest value.
reader (topic & topic)

Public Functions Documentation

function get_ro

Gets a non-null "read-only" copy of the latest value.

inline ptr < const Specific_event > ILLIXR::switchboard::reader::get_ro () const

Exception:

  • runtime_error If no event is on the topic yet.

function get_ro_nullable

Gets a "read-only" copy of the latest value.

inline ptr < const Specific_event > ILLIXR::switchboard::reader::get_ro_nullable () noexcept const

This will return null if no event is on the topic yet.


function get_rw

Gets a non-null mutable copy of the latest value.

inline ptr < Specific_event > ILLIXR::switchboard::reader::get_rw () const

Exception:

  • runtime_error If no event is on the topic yet.

function reader

inline explicit ILLIXR::switchboard::reader::reader (
    topic & topic
) 


The documentation for this class was generated from the following file /home/friedel/devel/ILLIXR/include/illixr/switchboard.hpp