Skip to content

Commit e54189d

Browse files
authored
Merge pull request #2745 from treelin611/rr_graphview_doxygen
Add some overview to the RRGraphView doxygen documentation
2 parents 40797ae + 0b40272 commit e54189d

File tree

3 files changed

+264
-174
lines changed

3 files changed

+264
-174
lines changed

doc/src/api/vpr/rr_graph.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ RRGraphView
77

88
.. doxygenfile:: rr_graph_view.h
99
:project: librrgraph
10-
:sections: detaileddescription
10+
:sections: briefdescription detaileddescription func prototype user-defined public-func
1111

1212
.. doxygenclass:: RRGraphView
1313
:project: librrgraph
@@ -18,7 +18,7 @@ RRGraphBuilder
1818

1919
.. doxygenfile:: rr_graph_builder.h
2020
:project: librrgraph
21-
:sections: detaileddescription
21+
:sections: briefdescription detaileddescription func prototype user-defined public-func
2222

2323
.. doxygenclass:: RRGraphBuilder
2424
:project: librrgraph
@@ -29,7 +29,7 @@ RRSpatialLookup
2929

3030
.. doxygenfile:: rr_spatial_lookup.h
3131
:project: librrgraph
32-
:sections: detaileddescription
32+
:sections: briefdescription detaileddescription func prototype user-defined public-func
3333

3434
.. doxygenclass:: RRSpatialLookup
3535
:project: librrgraph

libs/librrgraph/src/base/rr_graph_builder.h

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class RRGraphBuilder {
3838
t_rr_graph_storage& rr_nodes();
3939
/** @brief Return a writable object for update the fast look-up of rr_node */
4040
RRSpatialLookup& node_lookup();
41-
/** .. warning:: The Metadata should stay as an independent data structure than rest of the internal data,
41+
/** @warning The Metadata should stay as an independent data structure from the rest of the internal data,
4242
* e.g., node_lookup! */
4343
/** @brief Return a writable object for the meta data on the nodes */
4444
MetadataStorage<int>& rr_node_metadata();
@@ -84,8 +84,12 @@ class RRGraphBuilder {
8484

8585
return segment_id;
8686
}
87-
/** TODO @brief Return a writable list of all the rr_segments
88-
* .. warning:: It is not recommended to use this API unless you have to. The API may be deprecated later, and future APIs will designed to return a specific data from the rr_segments.
87+
/**
88+
* \internal
89+
* TODO
90+
* \endinternal
91+
* @brief Return a writable list of all the rr_segments
92+
* @warning It is not recommended to use this API unless you have to. The API may be deprecated later, and future APIs will designed to return a specific data from the rr_segments.
8993
*/
9094
inline vtr::vector<RRSegmentId, t_segment_inf>& rr_segments() {
9195
return rr_segments_;
@@ -103,8 +107,12 @@ class RRGraphBuilder {
103107

104108
return switch_id;
105109
}
106-
/** TODO @brief Return a writable list of all the rr_switches
107-
* .. warning:: It is not recommended to use this API unless you have to. The API may be deprecated later, and future APIs will designed to return a specific data from the rr_switches.
110+
/**
111+
* \internal
112+
* TODO
113+
* \endinternal
114+
* @brief Return a writable list of all the rr_switches
115+
* @warning It is not recommended to use this API unless you have to. The API may be deprecated later, and future APIs will designed to return a specific data from the rr_switches.
108116
*/
109117
inline vtr::vector<RRSwitchId, t_rr_switch_inf>& rr_switch() {
110118
return rr_switch_inf_;
@@ -388,7 +396,7 @@ class RRGraphBuilder {
388396
/* Detailed information about the switches, which are used in the RRGraph */
389397
vtr::vector<RRSwitchId, t_rr_switch_inf> rr_switch_inf_;
390398

391-
/** .. warning:: The Metadata should stay as an independent data structure than rest of the internal data,
399+
/** @warning The Metadata should stay as an independent data structure from the rest of the internal data,
392400
* e.g., node_lookup! */
393401
/* Metadata is an extra data on rr-nodes and edges, respectively, that is not used by vpr
394402
* but simply passed through the flow so that it can be used by downstream tools.

0 commit comments

Comments
 (0)