Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
List< T > Class Template Reference

#include <List.h>

List of all members.

Public Member Functions

 List ()
 List (const List< T > &l)
 ~List ()
T *& operator[] (int i)
T * operator[] (int i) const
T *& at (int i)
T * at (int i) const
void append (List< T > &list)
void append (const T *val)
void insert (const T *val, int index=0)
void insertSort (const T *val)
T * first () const
T * last () const
T * remove (const T *val)
T * removeIndex (int index)
void clear ()
void destroy ()
int size () const
bool isEmpty () const
bool contains (const T *val) const
int count (const T *val) const
int index (const T *val) const
T * find (const T *val) const
void sort ()
void shuffle ()

Friends

class ListIter< T >

Detailed Description

template<class T>
class List< T >

Definition at line 25 of file List.h.


Constructor & Destructor Documentation

template<class T>
List< T >::List ( )
inline

Definition at line 28 of file List.h.

template<class T>
List< T >::List ( const List< T > &  l)

Definition at line 22 of file List.inl.

template<class T>
List< T >::~List ( )
inline

Definition at line 30 of file List.h.


Member Function Documentation

template<class T>
void List< T >::append ( List< T > &  list)

Definition at line 157 of file List.inl.

template<class T>
void List< T >::append ( const T *  val)

Definition at line 148 of file List.inl.

template<class T >
T *& List< T >::at ( int  i)

Definition at line 101 of file List.inl.

template<class T >
T * List< T >::at ( int  i) const

Definition at line 113 of file List.inl.

template<class T >
void List< T >::clear ( )

Definition at line 36 of file List.inl.

template<class T>
bool List< T >::contains ( const T *  val) const

Definition at line 243 of file List.inl.

template<class T>
int List< T >::count ( const T *  val) const

Definition at line 256 of file List.inl.

template<class T >
void List< T >::destroy ( )

Definition at line 45 of file List.inl.

template<class T>
T * List< T >::find ( const T *  val) const

Definition at line 288 of file List.inl.

template<class T>
T* List< T >::first ( ) const
inline

Definition at line 42 of file List.h.

template<class T>
int List< T >::index ( const T *  val) const

Definition at line 273 of file List.inl.

template<class T>
void List< T >::insert ( const T *  val,
int  index = 0 
)

Definition at line 171 of file List.inl.

template<class T>
void List< T >::insertSort ( const T *  val)

Definition at line 188 of file List.inl.

template<class T>
bool List< T >::isEmpty ( ) const
inline

Definition at line 51 of file List.h.

template<class T>
T* List< T >::last ( ) const
inline

Definition at line 43 of file List.h.

template<class T >
T *& List< T >::operator[] ( int  i)

Definition at line 81 of file List.inl.

template<class T >
T * List< T >::operator[] ( int  i) const

Definition at line 93 of file List.inl.

template<class T>
T * List< T >::remove ( const T *  val)

Definition at line 204 of file List.inl.

template<class T >
T * List< T >::removeIndex ( int  index)

Definition at line 221 of file List.inl.

template<class T >
void List< T >::shuffle ( )

Definition at line 364 of file List.inl.

template<class T>
int List< T >::size ( ) const
inline

Definition at line 50 of file List.h.

template<class T >
void List< T >::sort ( )

Definition at line 355 of file List.inl.


Friends And Related Function Documentation

template<class T>
friend class ListIter< T >
friend

Definition at line 72 of file List.h.


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