Public Member Functions | Protected Attributes

Static< T, SIZE > Class Template Reference

#include <Static.h>

Inheritance diagram for Static< T, SIZE >:
List< T >

List of all members.

Public Member Functions

 Static ()
 Static (uint num,...)
virtual ~Static (void)
bool add (T data)
bool insert (uint index, T data)
bool replace (T oldItem, T newItem)
bool replaceIndex (uint index, T newItem)
void remove (T data)
void removeIndex (uint index)
void clear (void)
get (uint index)
T & getRef (uint index)
void set (uint index, T data)
uint size (void)
uint length (void)
bool has (T data, uint *out=0)
T & operator[] (uint index)
const T operator[] (uint index) const

Protected Attributes

array [SIZE]
uint last

Detailed Description

template<typename T, uint SIZE>
class Static< T, SIZE >

Definition at line 3 of file Static.h.


Constructor & Destructor Documentation

template<typename T , uint SIZE>
Static< T, SIZE >::Static (  ) 

Definition at line 5 of file Static.inl.

template<typename T , uint SIZE>
Static< T, SIZE >::Static ( uint  num,
  ... 
)

Definition at line 10 of file Static.inl.

template<typename T , uint SIZE>
Static< T, SIZE >::~Static ( void   )  [virtual]

Definition at line 19 of file Static.inl.


Member Function Documentation

template<typename T, uint SIZE>
bool Static< T, SIZE >::add ( item  )  [virtual]

Add a new element at the end of the list.

Implements List< T >.

Definition at line 62 of file Static.inl.

template<typename T , uint SIZE>
void Static< T, SIZE >::clear ( void   )  [virtual]

Implements List< T >.

Definition at line 111 of file Static.inl.

template<typename T , uint SIZE>
T Static< T, SIZE >::get ( uint  index  )  [virtual]

Implements List< T >.

Definition at line 44 of file Static.inl.

template<typename T , uint SIZE>
T & Static< T, SIZE >::getRef ( uint  index  )  [virtual]

Implements List< T >.

Definition at line 50 of file Static.inl.

template<typename T, uint SIZE>
bool Static< T, SIZE >::has ( data,
uint out = 0 
)

Definition at line 34 of file Static.inl.

template<typename T, uint SIZE>
bool Static< T, SIZE >::insert ( uint  index,
data 
) [virtual]

Implements List< T >.

Definition at line 69 of file Static.inl.

template<typename T , uint SIZE>
uint Static< T, SIZE >::length ( void   ) 

Definition at line 29 of file Static.inl.

template<typename T , uint SIZE>
const T Static< T, SIZE >::operator[] ( uint  index  )  const

Definition at line 124 of file Static.inl.

template<typename T , uint SIZE>
T & Static< T, SIZE >::operator[] ( uint  index  ) 

Definition at line 118 of file Static.inl.

template<typename T, uint SIZE>
void Static< T, SIZE >::remove ( data  )  [virtual]

Implements List< T >.

Definition at line 94 of file Static.inl.

template<typename T , uint SIZE>
void Static< T, SIZE >::removeIndex ( uint  index  )  [virtual]

Implements List< T >.

Definition at line 103 of file Static.inl.

template<typename T, uint SIZE>
bool Static< T, SIZE >::replace ( oldItem,
newItem 
) [virtual]

Implements List< T >.

Definition at line 79 of file Static.inl.

template<typename T, uint SIZE>
bool Static< T, SIZE >::replaceIndex ( uint  index,
newItem 
) [virtual]

Implements List< T >.

Definition at line 87 of file Static.inl.

template<typename T, uint SIZE>
void Static< T, SIZE >::set ( uint  index,
data 
) [virtual]

Implements List< T >.

Definition at line 56 of file Static.inl.

template<typename T , uint SIZE>
uint Static< T, SIZE >::size ( void   )  [virtual]

Implements List< T >.

Definition at line 24 of file Static.inl.


Member Data Documentation

template<typename T, uint SIZE>
T Static< T, SIZE >::array[SIZE] [protected]

Definition at line 28 of file Static.h.

template<typename T, uint SIZE>
uint Static< T, SIZE >::last [protected]

Definition at line 29 of file Static.h.


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