#include <Map.h>
Public Member Functions | |
Map () | |
virtual | ~Map () |
GLvoid | clear (GLvoid) |
GLboolean | containsKey (KEY key) |
GLboolean | containsValue (VALUE value) |
VALUE & | get (KEY key) |
List< KEY > & | getKeys (GLvoid) |
List< VALUE > & | getValues (GLvoid) |
GLvoid | put (KEY key, VALUE value) |
GLvoid | remove (KEY key) |
GLuint | size (GLvoid) |
GLvoid | trimToSize (GLvoid) |
Destructor of the Map. Elements are removed.
GLvoid ES3D::Map< KEY, VALUE >::clear | ( | GLvoid | ) | [inline] |
Removes all elements from the map.
GLboolean ES3D::Map< KEY, VALUE >::containsKey | ( | KEY | key | ) | [inline] |
GLboolean ES3D::Map< KEY, VALUE >::containsValue | ( | VALUE | value | ) | [inline] |
Returns true, if the value is in the Map.
value | the value |
VALUE& ES3D::Map< KEY, VALUE >::get | ( | KEY | key | ) | [inline] |
Returns the value by key.
key | the key of the element |
Returns the keys of the map.
List<VALUE>& ES3D::Map< KEY, VALUE >::getValues | ( | GLvoid | ) | [inline] |
Returns the values of the map.
GLvoid ES3D::Map< KEY, VALUE >::put | ( | KEY | key, | |
VALUE | value | |||
) | [inline] |
Puts a element with key in the map. If it already exists, the element is overwritten.
key | the key of the element | |
value | the value |
GLvoid ES3D::Map< KEY, VALUE >::remove | ( | KEY | key | ) | [inline] |
Removes key and its associated value from the map.
key | the key |
GLuint ES3D::Map< KEY, VALUE >::size | ( | GLvoid | ) | [inline] |
Returns the size of the map.
GLvoid ES3D::Map< KEY, VALUE >::trimToSize | ( | GLvoid | ) | [inline] |
Trims the map with capacity equals size.