9f6733fcc8
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4 a1c6a512-1295-4272-9138-f99709370657
38 lines
411 B
C++
38 lines
411 B
C++
#ifndef LIST_H
|
|
#define LIST_H
|
|
|
|
|
|
class ListWalk {
|
|
public:
|
|
ListWalk(class List *list);
|
|
void restart();
|
|
|
|
void* getNext();
|
|
|
|
private:
|
|
int index;
|
|
class List *list;
|
|
};
|
|
|
|
class List {
|
|
friend ListWalk;
|
|
public:
|
|
List();
|
|
|
|
void* getNext(void *); // next after this
|
|
|
|
int getSize();
|
|
|
|
bool add(void *);
|
|
void *remove(void *);
|
|
|
|
private:
|
|
void **data;
|
|
int datasize;
|
|
|
|
int size;
|
|
|
|
};
|
|
|
|
|
|
#endif // LIST_H
|