本文整理汇总了C++中dds::Object_ptr::_is_a方法的典型用法代码示例。如果您正苦于以下问题:C++ Object_ptr::_is_a方法的具体用法?C++ Object_ptr::_is_a怎么用?C++ Object_ptr::_is_a使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dds::Object_ptr
的用法示例。
在下文中一共展示了Object_ptr::_is_a方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
sensor_msgs::msg::dds_::Joy_DataWriter_ptr sensor_msgs::msg::dds_::Joy_DataWriter::_narrow (DDS::Object_ptr p)
{
sensor_msgs::msg::dds_::Joy_DataWriter_ptr result = NULL;
if (p && p->_is_a (sensor_msgs::msg::dds_::Joy_DataWriter::_local_id))
{
result = dynamic_cast < sensor_msgs::msg::dds_::Joy_DataWriter_ptr> (p);
if (result) result->m_count++;
}
return result;
}
示例2:
proxyPoseStampedTypeSupportInterface_ptr proxyPoseStampedTypeSupportInterface::_narrow (DDS::Object_ptr p)
{
proxyPoseStampedTypeSupportInterface_ptr result = NULL;
if (p && p->_is_a (proxyPoseStampedTypeSupportInterface::_local_id))
{
result = dynamic_cast < proxyPoseStampedTypeSupportInterface_ptr> (p);
if (result) result->m_count++;
}
return result;
}
示例3: _narrow
proxyPoseStampedDataWriter_ptr proxyPoseStampedDataWriter::_narrow (DDS::Object_ptr p)
{
proxyPoseStampedDataWriter_ptr result = NULL;
if (p && p->_is_a (proxyPoseStampedDataWriter::_local_id))
{
result = dynamic_cast < proxyPoseStampedDataWriter_ptr> (p);
if (result) result->m_count++;
}
return result;
}
示例4:
nav_msgs::srv::dds_::Sample_GetPlan_Request_DataWriter_ptr nav_msgs::srv::dds_::Sample_GetPlan_Request_DataWriter::_narrow (DDS::Object_ptr p)
{
nav_msgs::srv::dds_::Sample_GetPlan_Request_DataWriter_ptr result = NULL;
if (p && p->_is_a (nav_msgs::srv::dds_::Sample_GetPlan_Request_DataWriter::_local_id))
{
result = dynamic_cast < nav_msgs::srv::dds_::Sample_GetPlan_Request_DataWriter_ptr> (p);
if (result) result->m_count++;
}
return result;
}
示例5:
rcl_interfaces::srv::dds_::Sample_DescribeParameters_Request_DataWriter_ptr rcl_interfaces::srv::dds_::Sample_DescribeParameters_Request_DataWriter::_narrow (DDS::Object_ptr p)
{
rcl_interfaces::srv::dds_::Sample_DescribeParameters_Request_DataWriter_ptr result = NULL;
if (p && p->_is_a (rcl_interfaces::srv::dds_::Sample_DescribeParameters_Request_DataWriter::_local_id))
{
result = dynamic_cast < rcl_interfaces::srv::dds_::Sample_DescribeParameters_Request_DataWriter_ptr> (p);
if (result) result->m_count++;
}
return result;
}
示例6:
sensor_msgs::msg::dds_::CompressedImage_TypeSupportInterface_ptr sensor_msgs::msg::dds_::CompressedImage_TypeSupportInterface::_narrow (DDS::Object_ptr p)
{
sensor_msgs::msg::dds_::CompressedImage_TypeSupportInterface_ptr result = NULL;
if (p && p->_is_a (sensor_msgs::msg::dds_::CompressedImage_TypeSupportInterface::_local_id))
{
result = dynamic_cast < sensor_msgs::msg::dds_::CompressedImage_TypeSupportInterface_ptr> (p);
if (result) result->m_count++;
}
return result;
}
示例7:
rcl_interfaces::srv::dds_::Sample_GetParameterTypes_Response_TypeSupportInterface_ptr rcl_interfaces::srv::dds_::Sample_GetParameterTypes_Response_TypeSupportInterface::_narrow (DDS::Object_ptr p)
{
rcl_interfaces::srv::dds_::Sample_GetParameterTypes_Response_TypeSupportInterface_ptr result = NULL;
if (p && p->_is_a (rcl_interfaces::srv::dds_::Sample_GetParameterTypes_Response_TypeSupportInterface::_local_id))
{
result = dynamic_cast < rcl_interfaces::srv::dds_::Sample_GetParameterTypes_Response_TypeSupportInterface_ptr> (p);
if (result) result->m_count++;
}
return result;
}
示例8:
rcl_interfaces::srv::dds_::GetParameterTypes_Response_DataReaderView_ptr rcl_interfaces::srv::dds_::GetParameterTypes_Response_DataReaderView::_narrow (DDS::Object_ptr p)
{
rcl_interfaces::srv::dds_::GetParameterTypes_Response_DataReaderView_ptr result = NULL;
if (p && p->_is_a (rcl_interfaces::srv::dds_::GetParameterTypes_Response_DataReaderView::_local_id))
{
result = dynamic_cast < rcl_interfaces::srv::dds_::GetParameterTypes_Response_DataReaderView_ptr> (p);
if (result) result->m_count++;
}
return result;
}
示例9:
Chat::ChatMessageDataWriter_ptr Chat::ChatMessageDataWriter::_narrow (DDS::Object_ptr p)
{
Chat::ChatMessageDataWriter_ptr result = NULL;
if (p && p->_is_a (Chat::ChatMessageDataWriter::_local_id))
{
result = dynamic_cast < Chat::ChatMessageDataWriter_ptr> (p);
if (result) result->m_count++;
}
return result;
}