Class GraphCache
Defined in File graph_cache.hpp
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.
- RCUTILS_DEPRECATED_WITH_MSG ("Migrate to using the version of this function taking a type hash.") bool add_reader(const rmw_gid_t &reader_gid
Add a data reader based on discovery.
See add_reader with rosidl_type_hash_t, whose other parameters match these.
- RCUTILS_DEPRECATED_WITH_MSG ("Migrate to using the version of this function taking a type hash.") bool add_entity(const rmw_gid_t &gid
Add a data reader or writer.
See add_entity with rosidl_type_hash_t, whose other parameters match these.
-
using NodeEntitiesInfoSeq = decltype(std::declval<rmw_dds_common::msg::ParticipantEntitiesInfo>().node_entities_info_seq)