This repository was archived by the owner on Apr 28, 2023. It is now read-only.
Commit b66ba3e
committed
ScheduleTreeBand: hide copy constructor
ScheduleTree nodes are not supposed to be manipulated by-value, only via unique
pointers. Make the copy constructor of ScheduleTreeBand private, similarly to
its main constructor, and provide a static member function to return copies
wrapped in a unique pointer. Note that unlike the conventional copy
constructor, this static function takes a pointer to the tree rather than a
reference. This keeps the API consistent as all other functions manipulate
with pointers to the tree nodes rather than references.1 parent ff810a8 commit b66ba3e
File tree
3 files changed
+17
-6
lines changed- tc/core/polyhedral
3 files changed
+17
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
204 | 212 | | |
205 | 213 | | |
206 | 214 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | 264 | | |
270 | 265 | | |
271 | 266 | | |
272 | 267 | | |
273 | 268 | | |
274 | 269 | | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
293 | 296 | | |
294 | 297 | | |
295 | 298 | | |
| |||
0 commit comments