43 #if defined(COIN_INTERNAL) && !defined(COIN_ALLOW_SBDICT) 44 #error prefer SbHash over SbDict for internal code 45 #endif // COIN_INTERNAL 50 #include <Inventor/SbBasic.h> 57 typedef uintptr_t SbDictKeyType;
58 typedef void SbDictApplyFunc(SbDictKeyType key,
void * value);
59 typedef void SbDictApplyDataFunc(SbDictKeyType key,
void * value,
void * data);
60 typedef SbDictKeyType SbDictHashingFunc(
const SbDictKeyType key);
65 SbDict(
const int entries = 251);
71 typedef uintptr_t Key;
73 void applyToAll(SbDictApplyFunc * rtn)
const;
74 void applyToAll(SbDictApplyDataFunc * rtn,
void * data)
const;
77 SbBool enter(
const Key key,
void *
const value);
78 SbBool find(
const Key key,
void *& value)
const;
80 SbBool
remove(
const Key key);
82 void setHashingFunction(SbDictHashingFunc * func);
85 struct cc_hash * hashtable;
91 #endif // !COIN_SBDICT_H The SbPList class is a container class for void pointers.
Definition: SbPList.h:40
The SbDict class organizes a dictionary of keys and values.It uses hashing to quickly insert and find...
Definition: SbDict.h:63