moving computers
This commit is contained in:
1 parent
f431b0305a
commit
517f9b79fb
2 files changed
+26
-4
No files matched your search
@@ -247,3 +247,25 @@ obj rule (Object) {
|
||||
}
|
||||
}
|
||||
|
||||
obj state (Object) {
|
||||
var kernel: vector::vector<rule>
|
||||
var rest: vector::vector<rule>
|
||||
|
||||
fun construct(): *state {
|
||||
kernel.construct()
|
||||
rest.construct()
|
||||
}
|
||||
fun copy_construct(other: *state) {
|
||||
kernel.copy_construct(&other->kernel)
|
||||
rest.copy_construct(&other->rest)
|
||||
}
|
||||
fun operator=(other: state) {
|
||||
destruct()
|
||||
copy_construct(&other)
|
||||
}
|
||||
fun destruct() {
|
||||
kernel.destruct()
|
||||
rest.destruct()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user