annotate Paper/src/TreeCopy.h @ 46:9baf70df56fa

copy algo
author matac42 <matac@cr.ie.u-ryukyu.ac.jp>
date Mon, 29 Jan 2024 13:41:22 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
46
9baf70df56fa copy algo
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 typedef struct Tree<> {
9baf70df56fa copy algo
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 union Data* tree;
9baf70df56fa copy algo
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 struct Node* node;
9baf70df56fa copy algo
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 __code put(Impl* tree, Type* node, __code next(...));
9baf70df56fa copy algo
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 __code get(Impl* tree, Type* node, __code next(...));
9baf70df56fa copy algo
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 __code remove(Impl* tree, Type* node, __code next(...));
9baf70df56fa copy algo
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 __code copy(Impl* tree, __code next(...));
9baf70df56fa copy algo
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 __code next(...);
9baf70df56fa copy algo
matac42 <matac@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 } Tree;