vdk 2.4.0
|
Provides a reference semantic double linked list. More...
#include <dlist.h>
Public Member Functions | |
VDKList () | |
~VDKList () | |
void | add (T *t) |
void | insertAt (T *t, int pos) |
T * | find (T *x) |
int | at (T *x) |
T * | operator[] (int n) |
int | remove (T *x) |
int | size () |
void | flush () |
Provides a reference semantic double linked list.
VDKList has a reference semantic, all managed objects are pointers to their original values. This calls is widely used for vdk internals.
Destructor. VDKList does not owns object pointed thus not provide to their destruction. Destruction of pointed objects must be explicit.
|
inline |
Appends a pointer to type T to the list. To mantain reference integrity no same pointer will be added twice.
t | type T pointer |
Prepends a pointer to type T to the list. To mantain reference integrity no same pointer will be added twice.
t | type T pointer |
int VDKList< T >::at | ( | T * | x | ) |
find position of type<T> object, returns ordinal position, -1 on failure
x | address to be searched for |
T * VDKList< T >::find | ( | T * | x | ) |
Membership operator, return NULL if not found
x | address to be searched for |
void VDKList< T >::flush |
Flushes list
|
inline |
Insert a pointer to type T to the list. To mantain reference integrity no same pointer will be added twice.
t | type T pointer |
pos | ordinal position |
|
inline |
Ordinal access operator
int VDKList< T >::remove | ( | T * | x | ) |
Remove a pointer from list
x | address to be removed |
|
inline |
Returns list size