annotate Paper/src/Queue.h @ 10:7573c185aecf

add impl
author ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
date Tue, 25 Jan 2022 22:27:17 +0900
parents 853d7c65f524
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
853d7c65f524 add Chapter2,3
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 typedef struct Queue<>{
853d7c65f524 add Chapter2,3
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 union Data* queue;
853d7c65f524 add Chapter2,3
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 union Data* data;
853d7c65f524 add Chapter2,3
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4
853d7c65f524 add Chapter2,3
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 __code whenEmpty(...);
853d7c65f524 add Chapter2,3
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 __code clear(Impl* queue, __code next(...));
853d7c65f524 add Chapter2,3
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 __code put(Impl* queue, union Data* data, __code next(...));
853d7c65f524 add Chapter2,3
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 __code take(Impl* queue, __code next(union Data* data, ...));
853d7c65f524 add Chapter2,3
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 __code isEmpty(Impl* queue, __code next(...), __code whenEmpty(...));
853d7c65f524 add Chapter2,3
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 __code next(...);
853d7c65f524 add Chapter2,3
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 } Queue;