summaryrefslogtreecommitdiff
path: root/uisimulator/list.h
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/list.h')
-rw-r--r--uisimulator/list.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/uisimulator/list.h b/uisimulator/list.h
new file mode 100644
index 0000000000..91a85869bc
--- /dev/null
+++ b/uisimulator/list.h
@@ -0,0 +1,38 @@
1#ifndef LIST_H
2#define LIST_H
3
4
5class ListWalk {
6 public:
7 ListWalk(class List *list);
8 void restart();
9
10 void* getNext();
11
12 private:
13 int index;
14 class List *list;
15};
16
17class List {
18 friend ListWalk;
19 public:
20 List();
21
22 void* getNext(void *); // next after this
23
24 int getSize();
25
26 bool add(void *);
27 void *remove(void *);
28
29 private:
30 void **data;
31 int datasize;
32
33 int size;
34
35};
36
37
38#endif // LIST_H