@@ -34,43 +34,44 @@ namespace dynamic_typesupport
34
34
class DynamicMessage ;
35
35
class DynamicMessageTypeBuilder ;
36
36
37
- // / Utility wrapper class for rosidl_dynamic_typesupport_dynamic_type_t *
37
+ // / Utility wrapper class for ` rosidl_dynamic_typesupport_dynamic_type_t *`
38
38
/* *
39
39
* This class:
40
40
* - Manages the lifetime of the raw pointer.
41
41
* - Exposes getter methods to get the raw pointer and shared pointers
42
42
* - Exposes the underlying serialization support API
43
43
*
44
44
* Ownership:
45
- * - This class borrows the rosidl_dynamic_typesupport_serialization_support_t stored in the passed
46
- * DynamicSerializationSupport. So it cannot outlive the DynamicSerializationSupport.
47
- * - The DynamicSerializationSupport's rosidl_dynamic_typesupport_serialization_support_t pointer
48
- * must point to the same location in memory as the stored raw pointer!
45
+ * - This class borrows the `rosidl_dynamic_typesupport_serialization_support_t` stored in the
46
+ * passed `DynamicSerializationSupport`.
47
+ * So it cannot outlive the `DynamicSerializationSupport`.
48
+ * - The `DynamicSerializationSupport`'s `rosidl_dynamic_typesupport_serialization_support_t`
49
+ * pointer must point to the same location in memory as the stored raw pointer!
49
50
*
50
- * Note: This class is meant to map to the lower level rosidl_dynamic_typesupport_dynamic_type_t,
51
- * which can be constructed via DynamicMessageTypeBuilder, which maps to
52
- * rosidl_dynamic_typesupport_dynamic_type_builder_t.
51
+ * This class is meant to map to the lower level ` rosidl_dynamic_typesupport_dynamic_type_t` ,
52
+ * which can be constructed via ` DynamicMessageTypeBuilder` , which maps to
53
+ * ` rosidl_dynamic_typesupport_dynamic_type_builder_t` .
53
54
*
54
- * The usual method of obtaining a DynamicMessageType is through construction of
55
- * rosidl_message_type_support_t via rcl_dynamic_message_type_support_handle_init() , then
56
- * taking ownership of its contents. But DynamicMessageTypeBuilder can also be used to obtain
57
- * DynamicMessageType by constructing it bottom-up instead, since it exposes the lower_level
58
- * rosidl methods.
55
+ * The usual method of obtaining a ` DynamicMessageType` is through construction of
56
+ * ` rosidl_message_type_support_t` via `rcl_dynamic_message_type_support_handle_create()` , then
57
+ * taking ownership of its contents. But ` DynamicMessageTypeBuilder` can also be used to obtain
58
+ * ` DynamicMessageType` by constructing it bottom-up instead, since it exposes the lower_level
59
+ * rosidl methods.
59
60
*/
60
61
class DynamicMessageType : public std ::enable_shared_from_this<DynamicMessageType>
61
62
{
62
63
public:
63
64
RCLCPP_SMART_PTR_ALIASES_ONLY (DynamicMessageType)
64
65
65
66
// CONSTRUCTION ==================================================================================
66
- // Most constructors require a passed in DynamicSerializationSupport::SharedPtr, to extend the
67
+ // Most constructors require a passed in ` DynamicSerializationSupport::SharedPtr` , to extend the
67
68
// lifetime of the serialization support (if the constructor cannot otherwise get it from args).
68
69
//
69
70
// In cases where a dynamic type pointer is passed, the serialization support composed by
70
- // the type should be the exact same object managed by the DynamicSerializationSupport,
71
+ // the type should be the exact same object managed by the ` DynamicSerializationSupport` ,
71
72
// otherwise the lifetime management will not work properly.
72
73
73
- // / Construct a new DynamicMessageType with the provided dynamic type builder
74
+ // / Construct a new ` DynamicMessageType` with the provided dynamic type builder
74
75
RCLCPP_PUBLIC
75
76
explicit DynamicMessageType (std::shared_ptr<DynamicMessageTypeBuilder> dynamic_type_builder);
76
77
@@ -111,7 +112,7 @@ class DynamicMessageType : public std::enable_shared_from_this<DynamicMessageTyp
111
112
RCLCPP_PUBLIC
112
113
virtual ~DynamicMessageType ();
113
114
114
- // / Swaps the serialization support if serialization_support is populated
115
+ // / Swaps the serialization support if ` serialization_support` is populated
115
116
RCLCPP_PUBLIC
116
117
void
117
118
init_from_description (
@@ -183,7 +184,7 @@ class DynamicMessageType : public std::enable_shared_from_this<DynamicMessageTyp
183
184
// It isn't actually used by the builder since the builder should compose its own support
184
185
//
185
186
// ... Though ideally it should be the exact same support as the one stored in the
186
- // DynamicSerializationSupport
187
+ // ` DynamicSerializationSupport`
187
188
DynamicSerializationSupport::SharedPtr serialization_support_;
188
189
189
190
std::shared_ptr<rosidl_dynamic_typesupport_dynamic_type_t > rosidl_dynamic_type_;
0 commit comments