rmw_fastrtps_shared_cpp  master
Code shared on static and dynamic type support of rmw_fastrtps_cpp.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Public Attributes | List of all members
rmw_fastrtps_shared_cpp::TopicHolder Struct Reference

#include <utils.hpp>

Public Member Functions

 ~TopicHolder ()
 

Public Attributes

eprosima::fastdds::dds::DomainParticipant * participant = nullptr
 
eprosima::fastdds::dds::TopicDescription * desc = nullptr
 
eprosima::fastdds::dds::Topic * topic = nullptr
 
bool should_be_deleted = false
 

Detailed Description

Auxiliary struct to cleanup a topic created during entity creation. It is similar to a unique_ptr and its custom deleter at the same time.

The creation process of an entity should be as follows:

Constructor & Destructor Documentation

◆ ~TopicHolder()

rmw_fastrtps_shared_cpp::TopicHolder::~TopicHolder ( )
inline

Member Data Documentation

◆ participant

eprosima::fastdds::dds::DomainParticipant* rmw_fastrtps_shared_cpp::TopicHolder::participant = nullptr

◆ desc

eprosima::fastdds::dds::TopicDescription* rmw_fastrtps_shared_cpp::TopicHolder::desc = nullptr

◆ topic

eprosima::fastdds::dds::Topic* rmw_fastrtps_shared_cpp::TopicHolder::topic = nullptr

◆ should_be_deleted

bool rmw_fastrtps_shared_cpp::TopicHolder::should_be_deleted = false

The documentation for this struct was generated from the following file: