Skip to content

Commit f104122

Browse files
authored
Merge pull request #2634 from nedsels/update_heap_documentation
Router Heap documentation update
2 parents 5c40446 + 3e9bc7d commit f104122

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

doc/src/api/vprinternals/router_heap.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@ KAryHeap
2424
----------
2525
.. doxygenclass:: KAryHeap
2626
:project: vpr
27-
:members:
2827

2928
FourAryHeap
3029
----------
3130
.. doxygenclass:: FourAryHeap
32-
:project: vpr
33-
:members:
31+
:project: vpr

vpr/src/route/heap_type.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,21 @@ struct t_heap {
2727
t_heap_path* path_data;
2828

2929
/**
30-
* @brief Get <i>u.next</i>.
30+
* @brief Get the next t_heap item in the linked list.
3131
*/
3232
t_heap* next_heap_item() const {
3333
return u.next;
3434
}
3535

3636
/**
37-
* @brief Set <i>u.next</i>.
37+
* @brief Set the next t_heap item in the linked list.
3838
*/
3939
void set_next_heap_item(t_heap* next) {
4040
u.next = next;
4141
}
4242

4343
/**
44-
* @brief Get <i>u.prev_edge</i>.
44+
* @brief Get the edge from the previous node used to reach the current node.
4545
*
4646
* @note
4747
* Be careful: will return 0 (a valid id!) if uninitialized.
@@ -52,7 +52,7 @@ struct t_heap {
5252
}
5353

5454
/**
55-
* @brief Set <i>u.prev_edge</i>.
55+
* @brief Set the edge from the previous node used to reach the current node..
5656
*/
5757
inline void set_prev_edge(RREdgeId edge) {
5858
static_assert(sizeof(uint32_t) == sizeof(RREdgeId));
@@ -61,7 +61,7 @@ struct t_heap {
6161

6262
private:
6363
union {
64-
///@brief Pointer to the next s_heap structure in the free linked list.
64+
///@brief Pointer to the next t_heap structure in the free linked list.
6565
t_heap* next = nullptr;
6666

6767
/**
@@ -121,7 +121,7 @@ class HeapStorage {
121121
* As a general rule, any t_heap objects returned from this interface,
122122
* **must** be HeapInterface::free'd before destroying the HeapInterface
123123
* instance. This ensure that no leaks are present in the users of the heap.
124-
* Violating this assumption may result in a assertion violation.
124+
* Violating this assumption may result in an assertion violation.
125125
*/
126126
class HeapInterface {
127127
public:
@@ -160,7 +160,7 @@ class HeapInterface {
160160
* - empty_heap<BR>
161161
* - build_heap<BR>
162162
*
163-
* @param grid
163+
* @param grid The FPGA device grid
164164
*/
165165
virtual void init_heap(const DeviceGrid& grid) = 0;
166166

0 commit comments

Comments
 (0)