This repository was archived by the owner on Apr 28, 2023. It is now read-only.
Commit 6d09b28
committed
ScheduleTreeSequence: hide copy constructor
ScheduleTree nodes are not supposed to be manipulated by-value, only via
unique pointers. Make the copy constructor of ScheduleTreeSequence
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 ac7fee4 commit 6d09b28
File tree
3 files changed
+14
-2
lines changed- tc/core/polyhedral
3 files changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
161 | 170 | | |
162 | 171 | | |
163 | 172 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| 214 | + | |
214 | 215 | | |
215 | 216 | | |
216 | | - | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
227 | 230 | | |
228 | 231 | | |
229 | 232 | | |
| |||
0 commit comments