Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

TSE3::Impl::void_list Class Reference

#include <Notifier.h>

List of all members.

Public Member Functions

 void_list ()
 void_list (const void_list &)
 ~void_list ()
bool push_back (void *p)
bool erase (void *p)
unsigned int size () const
void * operator[] (unsigned int index)
bool contains (void *p) const


Detailed Description

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.


Constructor & Destructor Documentation

TSE3::Impl::void_list::void_list  ) 
 

TSE3::Impl::void_list::void_list const void_list  ) 
 

TSE3::Impl::void_list::~void_list  ) 
 


Member Function Documentation

bool TSE3::Impl::void_list::push_back void *  p  ) 
 

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 TSE3::Impl::void_list::erase void *  p  ) 
 

Returns true if p was in the void_list, false otherwise.

Parameters:
p Element to remove
Returns:
True if anything was erased

unsigned int TSE3::Impl::void_list::size  )  const
 

Returns the number of void*s in the void_list.

Returns:
Number of elements in list

void* TSE3::Impl::void_list::operator[] unsigned int  index  ) 
 

Returns the void*s at index index

Parameters:
index Index of item to retrieve
Returns:
void* at index

bool TSE3::Impl::void_list::contains void *  p  )  const
 

Returns whether or not p is in the void_list

Parameters:
p Element to test
Returns:
Whether p is in the void_list


The documentation for this class was generated from the following file:
Generated on Wed May 25 14:48:00 2005 for TSE3 by doxygen 1.3.2