#include <GContainers.h>
Public Member Functions | |
virtual bool | Delete () |
Deletes the current item. | |
virtual bool | Delete (int i) |
Deletes the item at position 'i'. | |
virtual bool | Delete (Type *p) |
Deletes the pointer 'p'. | |
virtual bool | Insert (Type *p, int Index=-1) |
Inserts a pointer. | |
Type * | First () |
Return the first pointer. | |
Type * | Last () |
Return the last pointer. | |
Type * | Next () |
Return the pointer after the current one. | |
Type * | Prev () |
Return the pointer before the current one. | |
Type * | Current () |
Return the current pointer. | |
Type * | operator[] (int Index) |
Return the pointer at an index. | |
int | IndexOf (Type *p) |
Return the index of a pointer or -1 if it's not in the list. | |
bool | HasItem (Type *p) |
Return the TRUE if the pointer is in the list. | |
Type * | ItemAt (int i) |
Return the pointer at index 'i'. | |
void | Sort (int(*Compare)(Type *a, Type *b, int data), int Data) |
Sorts the list. | |
void | DeleteObjects () |
Delete all pointers in the list as dynamically allocated objects. | |
void | DeleteArrays () |
Delete all pointers in the list as dynamically allocated arrays. | |
List & | operator= (List< Type > &lst) |
Assign the contents of another list to this one. |
|
Inserts a pointer.
|
|
Assign the contents of another list to this one.
|
|
Sorts the list.
|