15 #ifndef RCLCPP__NODE_INTERFACES__GET_NODE_BASE_INTERFACE_HPP_ 16 #define RCLCPP__NODE_INTERFACES__GET_NODE_BASE_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_base_interface().get();
94 typename std::remove_pointer<NodeType>::type,
101 return node_pointer->get_node_base_interface();
149 #endif // RCLCPP__NODE_INTERFACES__GET_NODE_BASE_INTERFACE_HPP_
Definition: get_node_base_interface.hpp:47
This header provides the get_node_base_interface() template function.
Definition: allocator_common.hpp:24
decltype(check< NodeType >(nullptr)) type
Definition: get_node_base_interface.hpp:64
rclcpp::node_interfaces::NodeBaseInterface * get_node_base_interface(NodeType node_pointer)
Get the NodeBaseInterface as a pointer from a pointer to a "Node like" object.
Definition: get_node_base_interface.hpp:126
static constexpr bool value
Definition: get_node_base_interface.hpp:65
Pure virtual interface class for the NodeBase part of the Node API.
Definition: node_base_interface.hpp:36
rclcpp::node_interfaces::NodeBaseInterface * get_node_base_interface_from_pointer(rclcpp::node_interfaces::NodeBaseInterface *pointer)
Definition: get_node_base_interface.hpp:71