Skip to content

Commit 17d5145

Browse files
doxygen comment for get_parallel_seg_index
1 parent 21b7215 commit 17d5145

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

libs/librrgraph/src/base/get_parallel_segs.h

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ std::vector<t_segment_inf> get_parallel_segs(const std::vector<t_segment_inf>& s
2222
e_parallel_axis parallel_axis,
2323
bool keep_original_index = false);
2424

25-
int get_parallel_seg_index(int abs,
25+
/**
26+
* @brief Retrieves the segment index in an axis-specific segment list.
27+
*
28+
* @param abs_index Index of the segment in the unified segment list.
29+
* @param index_map Mapping from unified indices to (axis-specific index, axis).
30+
* This map must have been populated by `get_parallel_segs()`.
31+
* @param parallel_axis Axis to resolve ambiguous mappings for segments usable on multiple axes.
32+
*
33+
* @return The index of the segment in the axis-specific list if found, otherwise -1.
34+
*/
35+
36+
int get_parallel_seg_index(int abs_index,
2637
const t_unified_to_parallel_seg_index& index_map,
2738
e_parallel_axis parallel_axis);

0 commit comments

Comments
 (0)