40 #ifndef INCLUDED_GLS_LIST_H
41 #define INCLUDED_GLS_LIST_H
60 DISTI_EXPORT
ListItem(
const void* data,
int len );
69 DISTI_EXPORT
void*
Data();
75 DISTI_EXPORT ListItem*
Next();
78 DISTI_EXPORT ListItem*
Prev();
81 DISTI_EXPORT
int Priority()
const {
return _priority; }
86 DISTI_EXPORT
void Next( ListItem* pNext );
91 DISTI_EXPORT
void Prev( ListItem* pPrev );
97 DISTI_EXPORT
void Data(
void* item );
103 DISTI_EXPORT
void Priority(
int priority );
120 typedef void ( *ListIterator )(
void* obj,
void* data );
138 virtual DISTI_EXPORT ~List_c();
148 DISTI_EXPORT
void Empty();
176 DISTI_EXPORT
void InsertAfter(
int where,
const void* data,
int size,
void** parentPtr );
185 DISTI_EXPORT
void InsertAfter(
ListItem* after,
const void* data,
int size,
void** parentPtr );
205 DISTI_EXPORT
void Push(
const void* data,
int size,
void** parentPtr );
212 DISTI_EXPORT
void Push(
const void* data,
int size );
225 DISTI_EXPORT
void Enqueue(
const void* data,
int size,
void** parentPtr );
232 DISTI_EXPORT
void Enqueue(
const void* data,
int size );
253 DISTI_EXPORT
int Count();
279 DISTI_EXPORT
void ForwardIterator( ListIterator func,
void* data = NULL );
void InsertBefore(ListItem *before, ListItem *pNewNode)
void Enqueue(const void *data, int size, void **parentPtr)
void ForwardIterator(ListIterator func, void *data=NULL)
void * GetElement(int where)
void AddNodeWithPriority(ListItem *pNewNode, int priority)
void Push(const void *data, int size, void **parentPtr)
A file for all GL Studio files to include.
void Delete(ListItem *element)
void * _data
Definition: list.h:117
int Priority() const
Definition: list.h:81
void AllocateItemData(int size)
void InsertAfter(int where, const void *data, int size, void **parentPtr)
ListIteratorDirection
Definition: list.h:125
ListItem * Nth(int where)
void Iterator(ListIterator func, void *data, ListIteratorDirection direction)
void BackwardIterator(ListIterator func, void *data=NULL)
Definition: bmpimage.h:46
ListItem * _pTail
Definition: list.h:298