@@ -27,32 +27,30 @@ 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
48
*/
49
- constexpr RREdgeId prev_edge () const {
50
- static_assert (sizeof (uint32_t ) == sizeof (RREdgeId));
51
- return RREdgeId (u.prev_edge );
49
+ @@ -52 ,7 +52 ,7 @@ struct t_heap {
52
50
}
53
51
54
52
/* *
55
- * @brief Set <i>u.prev_edge</i> .
53
+ * @brief Set the edge from the previous node used to reach the current node. .
56
54
*/
57
55
inline void set_prev_edge (RREdgeId edge) {
58
56
static_assert (sizeof (uint32_t ) == sizeof (RREdgeId));
@@ -61,7 +59,7 @@ struct t_heap {
61
59
62
60
private:
63
61
union {
64
- // /@brief Pointer to the next s_heap structure in the free linked list.
62
+ // /@brief Pointer to the next t_heap structure in the free linked list.
65
63
t_heap* next = nullptr ;
66
64
67
65
/* *
@@ -121,7 +119,7 @@ class HeapStorage {
121
119
* As a general rule, any t_heap objects returned from this interface,
122
120
* **must** be HeapInterface::free'd before destroying the HeapInterface
123
121
* instance. This ensure that no leaks are present in the users of the heap.
124
- * Violating this assumption may result in a assertion violation.
122
+ * Violating this assumption may result in an assertion violation.
125
123
*/
126
124
class HeapInterface {
127
125
public:
@@ -160,7 +158,7 @@ class HeapInterface {
160
158
* - empty_heap<BR>
161
159
* - build_heap<BR>
162
160
*
163
- * @param grid
161
+ * @param grid The FPGA device grid
164
162
*/
165
163
virtual void init_heap (const DeviceGrid& grid) = 0;
166
164
0 commit comments