vector< T > Struct Template Reference

#include <tools.h>

List of all members.

Public Member Functions

 vector ()
 vector (const vector &v)
 ~vector ()
vector< T > & operator= (const vector< T > &v)
T & add (const T &x)
T & add ()
T & dup ()
bool inrange (size_t i) const
bool inrange (int i) const
T & pop ()
T & last ()
void drop ()
bool empty () const
int length () const
T & operator[] (int i)
const T & operator[] (int i) const
void setsize (int i)
void setsizenodelete (int i)
void deletecontentsp ()
void deletecontentsa ()
T * getbuf ()
const T * getbuf () const
template<class ST >
void sort (int(__cdecl *cf)(ST *, ST *), int i=0, int n=-1)
template<class ST >
T * search (T *key, int(__cdecl *cf)(ST *, ST *), int i=0, int n=-1)
void vrealloc (int sz)
databuf< T > reserve (int sz)
void addbuf (const databuf< T > &p)
void remove (int i, int n)
T remove (int i)
int find (const T &o)
void removeobj (const T &o)
void replacewithlast (const T &o)
T & insert (int i, const T &e)

Public Attributes

T * buf
int alen
int ulen

Static Public Attributes

static const int MINSIZE = 8

template<class T>
struct vector< T >


Constructor & Destructor Documentation

template<class T >
vector< T >::vector (  )  [inline]

template<class T >
vector< T >::vector ( const vector< T > &  v  )  [inline]

template<class T >
vector< T >::~vector (  )  [inline]


Member Function Documentation

template<class T >
T& vector< T >::add (  )  [inline]

template<class T >
T& vector< T >::add ( const T &  x  )  [inline]

template<class T >
void vector< T >::addbuf ( const databuf< T > &  p  )  [inline]

template<class T >
void vector< T >::deletecontentsa (  )  [inline]

template<class T >
void vector< T >::deletecontentsp (  )  [inline]

template<class T >
void vector< T >::drop (  )  [inline]

template<class T >
T& vector< T >::dup (  )  [inline]

template<class T >
bool vector< T >::empty (  )  const [inline]

template<class T >
int vector< T >::find ( const T &  o  )  [inline]

template<class T >
const T* vector< T >::getbuf (  )  const [inline]

template<class T >
T* vector< T >::getbuf (  )  [inline]

template<class T >
bool vector< T >::inrange ( int  i  )  const [inline]

template<class T >
bool vector< T >::inrange ( size_t  i  )  const [inline]

template<class T >
T& vector< T >::insert ( int  i,
const T &  e 
) [inline]

template<class T >
T& vector< T >::last (  )  [inline]

template<class T >
int vector< T >::length (  )  const [inline]

template<class T >
vector<T>& vector< T >::operator= ( const vector< T > &  v  )  [inline]

template<class T >
const T& vector< T >::operator[] ( int  i  )  const [inline]

template<class T >
T& vector< T >::operator[] ( int  i  )  [inline]

template<class T >
T& vector< T >::pop (  )  [inline]

template<class T >
T vector< T >::remove ( int  i  )  [inline]

template<class T >
void vector< T >::remove ( int  i,
int  n 
) [inline]

template<class T >
void vector< T >::removeobj ( const T &  o  )  [inline]

template<class T >
void vector< T >::replacewithlast ( const T &  o  )  [inline]

template<class T >
databuf<T> vector< T >::reserve ( int  sz  )  [inline]

template<class T >
template<class ST >
T* vector< T >::search ( T *  key,
int(__cdecl *cf)(ST *, ST *)  ,
int  i = 0,
int  n = -1 
) [inline]

template<class T >
void vector< T >::setsize ( int  i  )  [inline]

template<class T >
void vector< T >::setsizenodelete ( int  i  )  [inline]

template<class T >
template<class ST >
void vector< T >::sort ( int(__cdecl *cf)(ST *, ST *)  ,
int  i = 0,
int  n = -1 
) [inline]

template<class T >
void vector< T >::vrealloc ( int  sz  )  [inline]


Member Data Documentation

template<class T >
int vector< T >::alen

template<class T >
T* vector< T >::buf

template<class T >
const int vector< T >::MINSIZE = 8 [static]

template<class T >
int vector< T >::ulen


The documentation for this struct was generated from the following file:

Generated on Mon Dec 8 21:41:37 2008 for AssaultCube by  doxygen 1.5.7.1