This repository was archived by the owner on Apr 28, 2023. It is now read-only.
Commit ff810a8
committed
ScheduleTreeSet: hide copy constructor
ScheduleTree nodes are not supposed to be manipulated by-value, only via
unique pointers. Make the copy constructor of ScheduleTreeSet 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 6d09b28 commit ff810a8
File tree
3 files changed
+13
-2
lines changed- tc/core/polyhedral
3 files changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
178 | 186 | | |
179 | 187 | | |
180 | 188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
241 | 242 | | |
242 | 243 | | |
243 | | - | |
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
254 | 257 | | |
255 | 258 | | |
256 | 259 | | |
| |||
0 commit comments