Skip to content

Commit 1f4c42c

Browse files
author
tempate
committed
Rearrange & sort methods
Signed-off-by: tempate <danieldiaz@eprosima.com>
1 parent 10f0b1b commit 1f4c42c

4 files changed

Lines changed: 317 additions & 323 deletions

File tree

src/cpp/fastdds/xtypes/type_conversion/dyn_type_tree.hpp

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ ReturnCode_t dyn_type_to_tree(
8181
* @param dyn_type The DynamicType to convert.
8282
* @param type_str The string representation of the DynamicType.
8383
*/
84-
ReturnCode_t dyn_type_to_str(
84+
ReturnCode_t type_kind_to_str(
8585
const DynamicType::_ref_type& dyn_type,
8686
std::string& type_str) noexcept;
8787

@@ -96,24 +96,24 @@ ReturnCode_t array_kind_to_str(
9696
std::string& array_str) noexcept;
9797

9898
/**
99-
* @brief Converts a DynamicType of \c TK_SEQUENCE kind to a string.
99+
* @brief Converts a DynamicType of \c TK_MAP kind to a string.
100100
*
101101
* @param dyn_type The DynamicType to convert.
102-
* @param sequence_str The string representation of the DynamicType.
102+
* @param map_str The string representation of the DynamicType.
103103
*/
104-
ReturnCode_t sequence_kind_to_str(
104+
ReturnCode_t map_kind_to_str(
105105
const DynamicType::_ref_type& dyn_type,
106-
std::string& sequence_str) noexcept;
106+
std::string& map_str) noexcept;
107107

108108
/**
109-
* @brief Converts a DynamicType of \c TK_MAP kind to a string.
109+
* @brief Converts a DynamicType of \c TK_SEQUENCE kind to a string.
110110
*
111111
* @param dyn_type The DynamicType to convert.
112-
* @param map_str The string representation of the DynamicType.
112+
* @param sequence_str The string representation of the DynamicType.
113113
*/
114-
ReturnCode_t map_kind_to_str(
114+
ReturnCode_t sequence_kind_to_str(
115115
const DynamicType::_ref_type& dyn_type,
116-
std::string& map_str) noexcept;
116+
std::string& sequence_str) noexcept;
117117

118118
/**
119119
* @brief Gathers the members of a DynamicType.
@@ -161,64 +161,64 @@ ReturnCode_t dyn_type_tree_to_idl(
161161
std::string& dyn_type_str) noexcept;
162162

163163
/**
164-
* @brief Converts a tree with a \c TK_STRUCTURE root to an IDL string.
164+
* @brief Converts a tree with a \c TK_ALIAS root to an IDL string.
165165
*
166166
* @param node The root node of the tree.
167-
* @param struct_str The string representation of the tree.
167+
* @param alias_str The string representation of the tree.
168168
*/
169-
ReturnCode_t struct_to_str(
169+
ReturnCode_t alias_to_str(
170170
const utilities::collections::TreeNode<TreeNodeType>& node,
171-
std::string& struct_str) noexcept;
171+
std::string& alias_str) noexcept;
172172

173173
/**
174-
* @brief Converts a tree with a \c TK_ENUM root to an IDL string.
174+
* @brief Converts a tree with a \c TK_BITMASK root to an IDL string.
175175
*
176176
* @param node The root node of the tree.
177-
* @param enum_str The string representation of the tree.
177+
* @param union_str The string representation of the tree.
178178
*/
179-
ReturnCode_t enum_to_str(
179+
ReturnCode_t bitmask_to_str(
180180
const utilities::collections::TreeNode<TreeNodeType>& node,
181-
std::string& enum_str) noexcept;
181+
std::string& bitset_str) noexcept;
182182

183183
/**
184-
* @brief Converts a tree with a \c TK_UNION root to an IDL string.
184+
* @brief Converts a tree with a \c TK_BITSET root to an IDL string.
185185
*
186186
* @param node The root node of the tree.
187187
* @param union_str The string representation of the tree.
188188
*/
189-
ReturnCode_t union_to_str(
189+
ReturnCode_t bitset_to_str(
190190
const utilities::collections::TreeNode<TreeNodeType>& node,
191-
std::string& union_str) noexcept;
191+
std::string& bitset_str) noexcept;
192192

193193
/**
194-
* @brief Converts a tree with a \c TK_BITSET root to an IDL string.
194+
* @brief Converts a tree with a \c TK_ENUM root to an IDL string.
195195
*
196196
* @param node The root node of the tree.
197-
* @param union_str The string representation of the tree.
197+
* @param enum_str The string representation of the tree.
198198
*/
199-
ReturnCode_t bitset_to_str(
199+
ReturnCode_t enum_to_str(
200200
const utilities::collections::TreeNode<TreeNodeType>& node,
201-
std::string& bitset_str) noexcept;
201+
std::string& enum_str) noexcept;
202202

203203
/**
204-
* @brief Converts a tree with a \c TK_BITMASK root to an IDL string.
204+
* @brief Converts a tree with a \c TK_STRUCTURE root to an IDL string.
205205
*
206206
* @param node The root node of the tree.
207-
* @param union_str The string representation of the tree.
207+
* @param struct_str The string representation of the tree.
208208
*/
209-
ReturnCode_t bitmask_to_str(
209+
ReturnCode_t struct_to_str(
210210
const utilities::collections::TreeNode<TreeNodeType>& node,
211-
std::string& bitset_str) noexcept;
211+
std::string& struct_str) noexcept;
212212

213213
/**
214-
* @brief Converts a tree with a \c TK_ALIAS root to an IDL string.
214+
* @brief Converts a tree with a \c TK_UNION root to an IDL string.
215215
*
216216
* @param node The root node of the tree.
217-
* @param alias_str The string representation of the tree.
217+
* @param union_str The string representation of the tree.
218218
*/
219-
ReturnCode_t alias_to_str(
219+
ReturnCode_t union_to_str(
220220
const utilities::collections::TreeNode<TreeNodeType>& node,
221-
std::string& alias_str) noexcept;
221+
std::string& union_str) noexcept;
222222

223223
/**
224224
* @brief Converts a simple tree to an IDL string.

0 commit comments

Comments
 (0)