15 #ifndef RCLCPP__NODE_INTERFACES__GET_NODE_TOPICS_INTERFACE_HPP_ 16 #define RCLCPP__NODE_INTERFACES__GET_NODE_TOPICS_INTERFACE_HPP_ 20 #include <type_traits> 37 namespace node_interfaces
46 template<
typename NodeType,
typename ReturnType>
64 using type = decltype(check<NodeType>(
nullptr));
65 static constexpr
bool value = type::value;
87 return node_pointer->get_node_topics_interface().get();
94 typename std::remove_pointer<NodeType>::type,
101 return node_pointer->get_node_topics_interface();
147 #endif // RCLCPP__NODE_INTERFACES__GET_NODE_TOPICS_INTERFACE_HPP_
This header provides the get_node_topics_interface() template function.
Definition: allocator_common.hpp:24
decltype(check< NodeType >(nullptr)) type
Definition: get_node_topics_interface.hpp:64
rclcpp::node_interfaces::NodeTopicsInterface * get_node_topics_interface(NodeType &&node_pointer)
Get the NodeTopicsInterface as a pointer from a pointer to a "Node like" object.
Definition: get_node_topics_interface.hpp:126
Pure virtual interface class for the NodeTopics part of the Node API.
Definition: node_topics_interface.hpp:38
rclcpp::node_interfaces::NodeTopicsInterface * get_node_topics_interface_from_pointer(rclcpp::node_interfaces::NodeTopicsInterface *pointer)
Definition: get_node_topics_interface.hpp:71
static constexpr bool value
Definition: get_node_topics_interface.hpp:65
Definition: get_node_topics_interface.hpp:47