本文整理汇总了C++中dds::Object_ptr类的典型用法代码示例。如果您正苦于以下问题:C++ Object_ptr类的具体用法?C++ Object_ptr怎么用?C++ Object_ptr使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Object_ptr类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
Chat::NamedMessageDataReaderView_ptr Chat::NamedMessageDataReaderView::_narrow (DDS::Object_ptr p)
{
Chat::NamedMessageDataReaderView_ptr result = NULL;
if (p && p->_is_a (Chat::NamedMessageDataReaderView::_local_id))
{
result = dynamic_cast < Chat::NamedMessageDataReaderView_ptr> (p);
if (result) result->m_count++;
}
return result;
}
示例2:
DDS::TypeSupportFactory_ptr DDS::TypeSupportFactory::_narrow (DDS::Object_ptr p)
{
DDS::TypeSupportFactory_ptr result = NULL;
if (p && p->_is_a (DDS::TypeSupportFactory::_local_id))
{
result = dynamic_cast<DDS::TypeSupportFactory_ptr> (p);
result->m_count++;
}
return result;
}
示例3:
QuaternionTypeSupportInterface_ptr QuaternionTypeSupportInterface::_narrow (DDS::Object_ptr p)
{
QuaternionTypeSupportInterface_ptr result = NULL;
if (p && p->_is_a (QuaternionTypeSupportInterface::_local_id))
{
result = dynamic_cast < QuaternionTypeSupportInterface_ptr> (p);
if (result) result->m_count++;
}
return result;
}
示例4:
KonSensData::ServerReqDataReaderView_ptr KonSensData::ServerReqDataReaderView::_narrow (DDS::Object_ptr p)
{
KonSensData::ServerReqDataReaderView_ptr result = NULL;
if (p && p->_is_a (KonSensData::ServerReqDataReaderView::_local_id))
{
result = dynamic_cast < KonSensData::ServerReqDataReaderView_ptr> (p);
if (result) result->m_count++;
}
return result;
}
示例5:
pendulum_msgs::msg::dds_::JointCommand_DataWriter_ptr pendulum_msgs::msg::dds_::JointCommand_DataWriter::_narrow (DDS::Object_ptr p)
{
pendulum_msgs::msg::dds_::JointCommand_DataWriter_ptr result = NULL;
if (p && p->_is_a (pendulum_msgs::msg::dds_::JointCommand_DataWriter::_local_id))
{
result = dynamic_cast < pendulum_msgs::msg::dds_::JointCommand_DataWriter_ptr> (p);
if (result) result->m_count++;
}
return result;
}
示例6:
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;
}
示例7:
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;
}
示例8:
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;
}
示例9:
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;
}
示例10:
sensor_msgs::msg::dds_::CompressedImage_DataReader_ptr sensor_msgs::msg::dds_::CompressedImage_DataReader::_narrow (DDS::Object_ptr p)
{
sensor_msgs::msg::dds_::CompressedImage_DataReader_ptr result = NULL;
if (p && p->_is_a (sensor_msgs::msg::dds_::CompressedImage_DataReader::_local_id))
{
result = dynamic_cast < sensor_msgs::msg::dds_::CompressedImage_DataReader_ptr> (p);
if (result) result->m_count++;
}
return result;
}
示例11:
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;
}
示例12:
geometry_msgs::msg::dds_::Wrench_DataWriter_ptr geometry_msgs::msg::dds_::Wrench_DataWriter::_narrow (DDS::Object_ptr p)
{
geometry_msgs::msg::dds_::Wrench_DataWriter_ptr result = NULL;
if (p && p->_is_a (geometry_msgs::msg::dds_::Wrench_DataWriter::_local_id))
{
result = dynamic_cast < geometry_msgs::msg::dds_::Wrench_DataWriter_ptr> (p);
if (result) result->m_count++;
}
return result;
}
示例13: _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;
}
示例14:
std_msgs::msg::dds_::String_DataReader_ptr std_msgs::msg::dds_::String_DataReader::_narrow (DDS::Object_ptr p)
{
std_msgs::msg::dds_::String_DataReader_ptr result = NULL;
if (p && p->_is_a (std_msgs::msg::dds_::String_DataReader::_local_id))
{
result = dynamic_cast < std_msgs::msg::dds_::String_DataReader_ptr> (p);
if (result) result->m_count++;
}
return result;
}
示例15:
std_msgs::msg::dds_::MultiArrayDimension_DataWriter_ptr std_msgs::msg::dds_::MultiArrayDimension_DataWriter::_narrow (DDS::Object_ptr p)
{
std_msgs::msg::dds_::MultiArrayDimension_DataWriter_ptr result = NULL;
if (p && p->_is_a (std_msgs::msg::dds_::MultiArrayDimension_DataWriter::_local_id))
{
result = dynamic_cast < std_msgs::msg::dds_::MultiArrayDimension_DataWriter_ptr> (p);
if (result) result->m_count++;
}
return result;
}