List< Type > Class Template Reference

#include <List.h>

List of all members.


Detailed Description

template<typename Type>
class List< Type >

The base class for a optimal list implementation.

Public Member Functions

 List (int size)
 Constructor (The minimum list size is 0).
 ~List ()
 Destructor.
Type & operator[] (int index)
 Array access operator overloaded. If out of bounds, throws Err_OutOfBounds from ErrCode.h.
void Resize (int newSize)
 Resize the data without loss (Unless we cut it short).
int GetSize ()
 Returns the size of the list.

Private Attributes

Type * listData
 Data.
int listSize
 List size.

Constructor & Destructor Documentation

template<typename Type>
List< Type >::List ( int  size  )  [inline]

Constructor (The minimum list size is 0).

template<typename Type>
List< Type >::~List (  )  [inline]

Destructor.


Member Function Documentation

template<typename Type>
Type& List< Type >::operator[] ( int  index  )  [inline]

Array access operator overloaded. If out of bounds, throws Err_OutOfBounds from ErrCode.h.

template<typename Type>
void List< Type >::Resize ( int  newSize  )  [inline]

Resize the data without loss (Unless we cut it short).

template<typename Type>
int List< Type >::GetSize (  )  [inline]

Returns the size of the list.


Member Data Documentation

template<typename Type>
Type* List< Type >::listData [private]

Data.

template<typename Type>
int List< Type >::listSize [private]

List size.


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

Generated on Sun Feb 21 00:00:10 2010 for Penn State Robotics Club: Mini Grand Challenge 2010 by  doxygen 1.5.5