#include <btHashMap.h>
Public Member Functions | |
void | clear () |
const Value * | find (const Key &key) const |
Value * | find (const Key &key) |
int | findIndex (const Key &key) const |
const Value * | getAtIndex (int index) const |
Value * | getAtIndex (int index) |
void | insert (const Key &key, const Value &value) |
Value * | operator[] (const Key &key) |
void | remove (const Key &key) |
int | size () const |
Protected Member Functions | |
void | growTables (const Key &) |
Protected Attributes | |
btAlignedObjectArray< int > | m_hashTable |
btAlignedObjectArray< Key > | m_keyArray |
btAlignedObjectArray< int > | m_next |
btAlignedObjectArray< Value > | m_valueArray |
The btHashMap template class implements a generic and lightweight hashmap. A basic sample of how to use btHashMap is located in Demos\BasicDemo\main.cpp
Definition at line 220 of file btHashMap.h.
Definition at line 440 of file btHashMap.h.
const Value* btHashMap< Key, Value >::find | ( | const Key & | key | ) | const [inline] |
Definition at line 402 of file btHashMap.h.
Definition at line 412 of file btHashMap.h.
int btHashMap< Key, Value >::findIndex | ( | const Key & | key | ) | const [inline] |
Definition at line 423 of file btHashMap.h.
const Value* btHashMap< Key, Value >::getAtIndex | ( | int | index | ) | const [inline] |
Definition at line 384 of file btHashMap.h.
Value* btHashMap< Key, Value >::getAtIndex | ( | int | index | ) | [inline] |
Definition at line 391 of file btHashMap.h.
void btHashMap< Key, Value >::growTables | ( | const Key & | ) | [inline, protected] |
Definition at line 230 of file btHashMap.h.
void btHashMap< Key, Value >::insert | ( | const Key & | key, |
const Value & | value | ||
) | [inline] |
Definition at line 269 of file btHashMap.h.
Value* btHashMap< Key, Value >::operator[] | ( | const Key & | key | ) | [inline] |
Definition at line 398 of file btHashMap.h.
Definition at line 296 of file btHashMap.h.
Definition at line 379 of file btHashMap.h.
btAlignedObjectArray<int> btHashMap< Key, Value >::m_hashTable [protected] |
Definition at line 224 of file btHashMap.h.
btAlignedObjectArray<Key> btHashMap< Key, Value >::m_keyArray [protected] |
Definition at line 228 of file btHashMap.h.
btAlignedObjectArray<int> btHashMap< Key, Value >::m_next [protected] |
Definition at line 225 of file btHashMap.h.
btAlignedObjectArray<Value> btHashMap< Key, Value >::m_valueArray [protected] |
Definition at line 227 of file btHashMap.h.