Class GraphCache

Class Documentation

class GraphCache

Graph cache data structure.

Manages relationships between participants, nodes, and topics.

Public Types

using NodeEntitiesInfoSeq = decltype(std::declval<rmw_dds_common::msg::ParticipantEntitiesInfo>().node_entities_info_seq)
using EntityGidToInfo = std::map<rmw_gid_t, EntityInfo, Compare_rmw_gid_t>
using ParticipantToNodesMap = std::map<rmw_gid_t, ParticipantInfo, Compare_rmw_gid_t>
using GidSeq = decltype(std::declval<rmw_dds_common::msg::NodeEntitiesInfo>().writer_gid_seq)

Public Functions

template<typename CallbackT>
inline void set_on_change_callback(CallbackT &&callback)

Set a callback that will be called when the state of the object changes.

Parameters:

callback – callback to be called.

void clear_on_change_callback()

Clear previously registered “on change” callback.