Array< T > Class Template Reference

#include <Array.h>

List of all members.

Public Member Functions

 Array (int capacity=DEFAULT_CAPACITY)
 Array (const Array< T > &a)
 Array (const T *a, int len)
virtual ~Array ()
const T & get (int index) const
void set (int index, T t)
T & operator[] (int index)
const T & operator[] (int index) const
const T * getData () const
int size () const
void append (T t)
void remove (int pos)
void remove (int start, int end)
void resize (int size)
int find (const T t) const

Protected Attributes

int _size
int _capacity
T * _data


Detailed Description

template<class T>
class Array< T >

A dynamically resizable array


Constructor & Destructor Documentation

template<class T>
Array< T >::Array ( int  capacity = DEFAULT_CAPACITY  )  [inline]

template<class T>
Array< T >::Array ( const Array< T > &  a  )  [inline]

template<class T>
Array< T >::Array ( const T *  a,
int  len 
) [inline]

template<class T>
virtual Array< T >::~Array (  )  [inline, virtual]


Member Function Documentation

template<class T>
const T& Array< T >::get ( int  index  )  const [inline]

template<class T>
void Array< T >::set ( int  index,
t 
) [inline]

template<class T>
T& Array< T >::operator[] ( int  index  )  [inline]

template<class T>
const T& Array< T >::operator[] ( int  index  )  const [inline]

template<class T>
const T* Array< T >::getData (  )  const [inline]

template<class T>
int Array< T >::size (  )  const [inline]

template<class T>
void Array< T >::append ( t  )  [inline]

Reimplemented in NodeList.

template<class T>
void Array< T >::remove ( int  pos  )  [inline]

template<class T>
void Array< T >::remove ( int  start,
int  end 
) [inline]

template<class T>
void Array< T >::resize ( int  size  )  [inline]

template<class T>
int Array< T >::find ( const T  t  )  const [inline]


Member Data Documentation

template<class T>
int Array< T >::_size [protected]

template<class T>
int Array< T >::_capacity [protected]

template<class T>
T* Array< T >::_data [protected]


Generated on Thu Jan 18 10:06:17 2007 for vhdPLUS by  doxygen 1.5.1-p1