#include <List.h>
Public Member Functions | |
| List () | |
| virtual | ~List () |
| GLvoid | add (GLint index, T value) |
| GLvoid | add (T value) |
| GLvoid | clear (GLvoid) |
| GLboolean | contains (T value) |
| T & | get (GLint index) |
| GLint | indexOf (T value) |
| GLvoid | remove (GLint index) |
| GLvoid | removeElement (T value) |
| GLvoid | set (GLint index, T value) |
| GLuint | size (GLvoid) |
| GLvoid | trimToSize (GLvoid) |
| T & | operator[] (GLint index) |
| ES3D::List< T >::List | ( | ) | [inline] |
Constructor for the list.
| virtual ES3D::List< T >::~List | ( | ) | [inline, virtual] |
Destructor of the list.
| GLvoid ES3D::List< T >::add | ( | T | value | ) | [inline] |
Adds a element at the end of the list.
| value | the value to add |
| GLvoid ES3D::List< T >::add | ( | GLint | index, | |
| T | value | |||
| ) | [inline] |
Adds an element to the list. If needed the array is enlarged.
| index | the position where to add | |
| value | the value to be inserted |
| GLvoid ES3D::List< T >::clear | ( | GLvoid | ) | [inline] |
Clears and empties the list.
| GLboolean ES3D::List< T >::contains | ( | T | value | ) | [inline] |
Returns, if the lement is in the list.
| value | the element to look for |
| T& ES3D::List< T >::get | ( | GLint | index | ) | [inline] |
Returns the reference of the nth element.
| index | the nth element |
| GLint ES3D::List< T >::indexOf | ( | T | value | ) | [inline] |
Returns the position of an element in the list.
| value | the element to search for |
| T& ES3D::List< T >::operator[] | ( | GLint | index | ) | [inline] |
Returns the nth element out of the dynamic array.
| index | the nth element |
| GLvoid ES3D::List< T >::remove | ( | GLint | index | ) | [inline] |
Removes an element at the given position.
| index | the position |
| GLvoid ES3D::List< T >::removeElement | ( | T | value | ) | [inline] |
Removes the given element from the list.
| value | te element to be removed |
| GLvoid ES3D::List< T >::set | ( | GLint | index, | |
| T | value | |||
| ) | [inline] |
Sets a value at the given position. The old value is overwritten.
| index | the psoition where to put the element | |
| value | the element itself |
| GLuint ES3D::List< T >::size | ( | GLvoid | ) | [inline] |
Returns the size of the list.
| GLvoid ES3D::List< T >::trimToSize | ( | GLvoid | ) | [inline] |
Trims the list with capacity equals size.
1.4.7