#include <TPtrVectorT.hh>
Public Methods | |
| TPtrVectorT () | |
| Constructs an empty vector. | |
| TPtrVectorT (int n, T *a=NULL) | |
| Constructs an vector of the specified size.  | |
| TPtrVectorT (TPtrVectorT< T > &vec) | |
| Copy constructor. | |
| ~TPtrVectorT () | |
| Destructor. | |
| void | Append (T *a) | 
| Adds an item to the end of the vector.  | |
| void | Apply (void(*fn)(T *, void *), void *d) | 
| Applies the user defined function to every entry in the vector.  | |
| void | Clear () | 
| Removes all items from self. | |
| void | ClearAndDestroy () | 
| Removes all items from self and calls delete on them.  | |
| int | Entries () const | 
| Query number of entries in self.  | |
| void | Resize (int n, T *a=NULL) | 
| Resize vector to the specified size.  | |
| void | Sort (bool reverse=false) | 
| Sort all entries in self with the less than operator (<).  | |
| T *& | operator[] (int i) const | 
| Index operator.  | |
| TPtrVectorT< T > & | operator= (const TPtrVectorT< T > &vec) | 
| Assignment operator. | |
      
  | 
  ||||||||||||||||
| 
 Constructs an vector of the specified size. 
 
  | 
  
      
  | 
  ||||||||||
| 
 Adds an item to the end of the vector. 
 
  | 
  
      
  | 
  ||||||||||||||||
| 
 Applies the user defined function to every entry in the vector. 
 
  | 
  
      
  | 
  |||||||||
| 
 Removes all items from self and calls delete on them. Don't use if multiple pointers to the same object are stored.  | 
  
      
  | 
  |||||||||
| 
 Query number of entries in self. 
 
  | 
  
      
  | 
  ||||||||||
| 
 Index operator. Can be used for assignment. 
 
 
  | 
  
      
  | 
  ||||||||||||||||
| 
 Resize vector to the specified size. New entries are initialised to NULL. 
 
  | 
  
      
  | 
  ||||||||||
| 
 Sort all entries in self with the less than operator (<). 
 
  | 
  
1.3-rc2