#include <TValVectorT.hh>
Public Methods | |
| TValVectorT () | |
| Constructs an empty vector. | |
| TValVectorT (int n) | |
| Constructs an vector of the specified size.  | |
| TValVectorT (int n, const T &a) | |
| Constructs an vector of the specified size.  | |
| TValVectorT (const TValVectorT< T > &vec) | |
| Copy constructor. | |
| ~TValVectorT () | |
| Destructor. | |
| void | Append (const T &a) | 
| Adds an item to the end of the vector.  | |
| void | Apply (void(*fn)(T *, void *), void *d=0) | 
| Applies the user defined function to every entry in the vector.  | |
| void | Clear () | 
| Removes all items from self. | |
| int | Entries () const | 
| Query number of entries in self.  | |
| void | Resize (int n) | 
| Resize vector to the specified size.  | |
| void | Resize (int n, const T &a) | 
| Resize vector to the specified size.  | |
| void | Sort (bool ascending=true) | 
| Sort all entries in self with the less than operator (<).  | |
| T & | operator[] (int i) const | 
| Index operator.  | |
| TValVectorT< T > & | operator= (const TValVectorT< T > &vec) | 
| Assignment operator. | |
      
  | 
  ||||||||||
| 
 Constructs an vector of the specified size. 
 
  | 
  
      
  | 
  ||||||||||||||||
| 
 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. 
 
  | 
  
      
  | 
  |||||||||
| 
 Query number of entries in self. 
 
  | 
  
      
  | 
  ||||||||||
| 
 Index operator. Can be used for assignment. 
 
 
  | 
  
      
  | 
  ||||||||||||||||
| 
 Resize vector to the specified size. 
 
  | 
  
      
  | 
  ||||||||||
| 
 Resize vector to the specified size. 
 
  | 
  
      
  | 
  ||||||||||
| 
 Sort all entries in self with the less than operator (<). 
 
  | 
  
1.3-rc2