@@ -27,21 +27,21 @@ 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.
@@ -52,7 +52,7 @@ struct t_heap {
52
52
}
53
53
54
54
/* *
55
- * @brief Set <i>u.prev_edge</i> .
55
+ * @brief Set the edge from the previous node used to reach the current node. .
56
56
*/
57
57
inline void set_prev_edge (RREdgeId edge) {
58
58
static_assert (sizeof (uint32_t ) == sizeof (RREdgeId));
@@ -61,7 +61,7 @@ struct t_heap {
61
61
62
62
private:
63
63
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.
65
65
t_heap* next = nullptr ;
66
66
67
67
/* *
@@ -121,12 +121,13 @@ class HeapStorage {
121
121
* As a general rule, any t_heap objects returned from this interface,
122
122
* **must** be HeapInterface::free'd before destroying the HeapInterface
123
123
* 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.
125
125
*/
126
126
class HeapInterface {
127
127
public:
128
128
virtual ~HeapInterface () {}
129
129
130
+ protected:
130
131
/* *
131
132
* @brief Allocate a heap item.
132
133
*
@@ -160,7 +161,7 @@ class HeapInterface {
160
161
* - empty_heap<BR>
161
162
* - build_heap<BR>
162
163
*
163
- * @param grid
164
+ * @param grid The FGPA device grid
164
165
*/
165
166
virtual void init_heap (const DeviceGrid& grid) = 0;
166
167
0 commit comments