34 #if defined(COIN_INTERNAL) && !defined(COIN_ALLOW_SBDICT)
35 #error prefer SbHash over SbDict for internal code
36 #endif // COIN_INTERNAL
41 #include <Inventor/SbBasic.h>
48 typedef uintptr_t SbDictKeyType;
49 typedef void SbDictApplyFunc(SbDictKeyType key,
void * value);
50 typedef void SbDictApplyDataFunc(SbDictKeyType key,
void * value,
void * data);
51 typedef SbDictKeyType SbDictHashingFunc(
const SbDictKeyType key);
56 SbDict(
const int entries = 251);
62 typedef uintptr_t Key;
64 void applyToAll(SbDictApplyFunc * rtn)
const;
65 void applyToAll(SbDictApplyDataFunc * rtn,
void * data)
const;
68 SbBool enter(
const Key key,
void *
const value);
69 SbBool find(
const Key key,
void *& value)
const;
71 SbBool
remove(
const Key key);
73 void setHashingFunction(SbDictHashingFunc * func);
76 struct cc_hash * hashtable;
82 #endif // !COIN_SBDICT_H
The SbPList class is a container class for void pointers.
Definition: SbPList.h:31
The SbDict class organizes a dictionary of keys and values.It uses hashing to quickly insert and find...
Definition: SbDict.h:54