@@ -27,32 +27,29 @@ struct t_heap {
27
27
t_heap_path* path_data;
28
28
29
29
/* *
30
- * @brief Get <i>u. next</i> .
30
+ * @brief Get the next t_heap item in the linked list .
31
31
*/
32
32
t_heap* next_heap_item () const {
33
33
return u.next ;
34
34
}
35
35
36
36
/* *
37
- * @brief Set <i>u. next</i> .
37
+ * @brief Set the next t_heap item in the linked list .
38
38
*/
39
39
void set_next_heap_item (t_heap* next) {
40
40
u.next = next;
41
41
}
42
42
43
43
/* *
44
- * @brief Get <i>u.prev_edge</i> .
44
+ * @brief Get the edge from the previous node used to reach the current node .
45
45
*
46
46
* @note
47
47
* Be careful: will return 0 (a valid id!) if uninitialized.
48
- */
49
- constexpr RREdgeId prev_edge () const {
50
- static_assert (sizeof (uint32_t ) == sizeof (RREdgeId));
51
- return RREdgeId (u.prev_edge );
48
+ @@ -52,7 +52,7 @@ struct t_heap {
52
49
}
53
50
54
51
/**
55
- * @brief Set <i>u.prev_edge</i> .
52
+ * @brief Set the edge from the previous node used to reach the current node. .
56
53
*/
57
54
inline void set_prev_edge (RREdgeId edge) {
58
55
static_assert (sizeof (uint32_t ) == sizeof (RREdgeId));
@@ -61,7 +58,7 @@ struct t_heap {
61
58
62
59
private:
63
60
union {
64
- // /@brief Pointer to the next s_heap structure in the free linked list.
61
+ // /@brief Pointer to the next t_heap structure in the free linked list.
65
62
t_heap* next = nullptr ;
66
63
67
64
/* *
@@ -121,7 +118,7 @@ class HeapStorage {
121
118
* As a general rule, any t_heap objects returned from this interface,
122
119
* **must** be HeapInterface::free'd before destroying the HeapInterface
123
120
* instance. This ensure that no leaks are present in the users of the heap.
124
- * Violating this assumption may result in a assertion violation.
121
+ * Violating this assumption may result in an assertion violation.
125
122
*/
126
123
class HeapInterface {
127
124
public:
@@ -160,7 +157,7 @@ class HeapInterface {
160
157
* - empty_heap<BR>
161
158
* - build_heap<BR>
162
159
*
163
- * @param grid
160
+ * @param grid The FPGA device grid
164
161
*/
165
162
virtual void init_heap (const DeviceGrid& grid) = 0;
166
163
0 commit comments