|
|
A very simple "vector" class. It holds a list of void *s. It has enough vector-like methods that the Notifier framework can use it.
It is a disgusting thing to include in this library when we should just be using std::vector instead. In fact, this class is implemented with a std::vector. The reason for its inclusion is the fact that it redces the size of libtse3.so.0.0.0 by about a third. This can be accounted for by the reduction in size of link names.
void_list ()
| void_list |
void_list (const void_list &)
| void_list |
~void_list ()
| ~void_list |
bool push_back (void *p)
| push_back |
Push a new void* onto the back of the list.
You cannot insert a duplicate entry.
Parameters:
p | Elemnt to push |
Returns: Whether the insert was successful: if p
was already inserted, then false will
be returned.
bool erase (void *p)
| erase |
Returns true if p
was in the void_list, false otherwise.
Parameters:
p | Element to remove |
Returns: True if anything was erased
unsigned int size ()
| size |
[const]
Returns the number of void*s in the void_list.
Returns: Number of elements in list
void * operator[] (unsigned int index)
| operator[] |
Returns the void*s at index index
Parameters:
index | Index of item to retrieve |
Returns: void* at index
bool contains (void *p)
| contains |
[const]
Returns whether or not p
is in the void_list
Parameters:
p | Element to test |
Returns: Whether p
is in the void_list
Generated by: pete on philemon on Wed May 25 14:39:52 2005, using kdoc 2.0a54. |