Blender V2.61 - r43446
Public Member Functions | Protected Member Functions | Protected Attributes

btHashMap< Key, Value > Class Template Reference

#include <btHashMap.h>

Inheritance diagram for btHashMap< Key, Value >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void insert (const Key &key, const Value &value)
void remove (const Key &key)
int size () const
const ValuegetAtIndex (int index) const
ValuegetAtIndex (int index)
Valueoperator[] (const Key &key)
const Valuefind (const Key &key) const
Valuefind (const Key &key)
int findIndex (const Key &key) const
void clear ()

Protected Member Functions

void growTables (const Key &)

Protected Attributes

btAlignedObjectArray< int > m_hashTable
btAlignedObjectArray< int > m_next
btAlignedObjectArray< Valuem_valueArray
btAlignedObjectArray< Keym_keyArray

Detailed Description

template<class Key, class Value>
class btHashMap< Key, Value >

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 204 of file btHashMap.h.


Member Function Documentation

template<class Key, class Value>
void btHashMap< Key, Value >::clear ( ) [inline]
template<class Key, class Value>
const Value* btHashMap< Key, Value >::find ( const Key key) const [inline]
template<class Key, class Value>
Value* btHashMap< Key, Value >::find ( const Key key) [inline]

Definition at line 396 of file btHashMap.h.

template<class Key, class Value>
int btHashMap< Key, Value >::findIndex ( const Key key) const [inline]
template<class Key, class Value>
const Value* btHashMap< Key, Value >::getAtIndex ( int  index) const [inline]

Definition at line 368 of file btHashMap.h.

Referenced by btSoftBodyTriangleCallback::clearCache().

template<class Key, class Value>
Value* btHashMap< Key, Value >::getAtIndex ( int  index) [inline]

Definition at line 375 of file btHashMap.h.

template<class Key, class Value>
void btHashMap< Key, Value >::growTables ( const Key ) [inline, protected]

Definition at line 214 of file btHashMap.h.

Referenced by btHashMap< btHashPtr, btPointerUid >::insert().

template<class Key, class Value>
void btHashMap< Key, Value >::insert ( const Key key,
const Value value 
) [inline]
template<class Key, class Value>
Value* btHashMap< Key, Value >::operator[] ( const Key key) [inline]

Definition at line 382 of file btHashMap.h.

template<class Key, class Value>
void btHashMap< Key, Value >::remove ( const Key key) [inline]

Definition at line 280 of file btHashMap.h.

template<class Key, class Value>
int btHashMap< Key, Value >::size ( ) const [inline]

Definition at line 363 of file btHashMap.h.

Referenced by btSoftBodyTriangleCallback::clearCache().


Member Data Documentation

template<class Key, class Value>
btAlignedObjectArray<int> btHashMap< Key, Value >::m_hashTable [protected]
template<class Key, class Value>
btAlignedObjectArray<Key> btHashMap< Key, Value >::m_keyArray [protected]
template<class Key, class Value>
btAlignedObjectArray<int> btHashMap< Key, Value >::m_next [protected]
template<class Key, class Value>
btAlignedObjectArray<Value> btHashMap< Key, Value >::m_valueArray [protected]

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