本文整理汇总了C++中dds::Object_ptr类的典型用法代码示例。如果您正苦于以下问题:C++ Object_ptr类的具体用法?C++ Object_ptr怎么用?C++ Object_ptr使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Object_ptr类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
开发者ID:xuefengchang,项目名称:dds_chatter,代码行数:10,代码来源:ChatDcps.cpp
示例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;
}
开发者ID:diorahman,项目名称:opensplice,代码行数:10,代码来源:dds_dcps.cpp
示例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;
}
开发者ID:ronnyh,项目名称:ros_dds_proxies,代码行数:10,代码来源:QuaternionDcps.cpp
示例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;
}
开发者ID:snmbzkrt,项目名称:rfkon,代码行数:10,代码来源:KonSensDataDcps.cpp
示例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;
}
开发者ID:swift-nav,项目名称:ros_rover,代码行数:10,代码来源:JointCommand_Dcps.cpp
示例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;
}
开发者ID:swift-nav,项目名称:ros_rover,代码行数:10,代码来源:Sample_DescribeParameters_Request_Dcps.cpp
示例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;
}
开发者ID:ronnyh,项目名称:ros_dds_proxies,代码行数:10,代码来源:proxyPoseStampedDcps.cpp
示例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;
}
开发者ID:swift-nav,项目名称:ros_rover,代码行数:10,代码来源:Sample_GetParameterTypes_Response_Dcps.cpp
示例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;
}
开发者ID:swift-nav,项目名称:ros_rover,代码行数:10,代码来源:Sample_GetPlan_Request_Dcps.cpp
示例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;
}
开发者ID:swift-nav,项目名称:ros_rover,代码行数:10,代码来源:CompressedImage_Dcps.cpp
示例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;
}
开发者ID:swift-nav,项目名称:ros_rover,代码行数:10,代码来源:GetParameterTypes_Response_Dcps.cpp
示例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;
}
开发者ID:swift-nav,项目名称:ros_rover,代码行数:10,代码来源:Wrench_Dcps.cpp
示例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;
}
开发者ID:ronnyh,项目名称:ros_dds_proxies,代码行数:10,代码来源:proxyPoseStampedDcps.cpp
示例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;
}
开发者ID:swift-nav,项目名称:ros_rover,代码行数:10,代码来源:String_Dcps.cpp
示例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;
}
开发者ID:swift-nav,项目名称:ros_rover,代码行数:10,代码来源:MultiArrayDimension_Dcps.cpp
示例16:
SEMADDS_Types::MessageDataWriter_ptr SEMADDS_Types::MessageDataWriter::_narrow (DDS::Object_ptr p)
{
SEMADDS_Types::MessageDataWriter_ptr result = NULL;
if (p && p->_is_a (SEMADDS_Types::MessageDataWriter::_local_id))
{
result = dynamic_cast < SEMADDS_Types::MessageDataWriter_ptr> (p);
if (result) result->m_count++;
}
return result;
}
开发者ID:locke12456,项目名称:DDS-Sample,代码行数:10,代码来源:semaddsDcps.cpp
示例17:
sensor_msgs::msg::dds_::PointCloud_DataReaderView_ptr sensor_msgs::msg::dds_::PointCloud_DataReaderView::_narrow (DDS::Object_ptr p)
{
sensor_msgs::msg::dds_::PointCloud_DataReaderView_ptr result = NULL;
if (p && p->_is_a (sensor_msgs::msg::dds_::PointCloud_DataReaderView::_local_id))
{
result = dynamic_cast < sensor_msgs::msg::dds_::PointCloud_DataReaderView_ptr> (p);
if (result) result->m_count++;
}
return result;
}
开发者ID:swift-nav,项目名称:ros_rover,代码行数:10,代码来源:PointCloud_Dcps.cpp
示例18:
sensor_msgs::msg::dds_::JoyFeedbackArray_DataWriter_ptr sensor_msgs::msg::dds_::JoyFeedbackArray_DataWriter::_narrow (DDS::Object_ptr p)
{
sensor_msgs::msg::dds_::JoyFeedbackArray_DataWriter_ptr result = NULL;
if (p && p->_is_a (sensor_msgs::msg::dds_::JoyFeedbackArray_DataWriter::_local_id))
{
result = dynamic_cast < sensor_msgs::msg::dds_::JoyFeedbackArray_DataWriter_ptr> (p);
if (result) result->m_count++;
}
return result;
}
开发者ID:swift-nav,项目名称:ros_rover,代码行数:10,代码来源:JoyFeedbackArray_Dcps.cpp
示例19: _narrow
QuaternionDataWriter_ptr QuaternionDataWriter::_narrow (DDS::Object_ptr p)
{
QuaternionDataWriter_ptr result = NULL;
if (p && p->_is_a (QuaternionDataWriter::_local_id))
{
result = dynamic_cast < QuaternionDataWriter_ptr> (p);
if (result) result->m_count++;
}
return result;
}
开发者ID:ronnyh,项目名称:ros_dds_proxies,代码行数:10,代码来源:QuaternionDcps.cpp
注:本文中的dds::Object_ptr类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论