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>
49 SbDict(
const int entries = 251);
55 typedef unsigned long Key;
57 void applyToAll(
void (* rtn)(Key key,
void * value))
const;
58 void applyToAll(
void (* rtn)(Key key,
void * value,
void * data),
62 SbBool enter(
const Key key,
void *
const value);
63 SbBool find(
const Key key,
void *& value)
const;
65 SbBool remove(
const Key key);
67 void setHashingFunction(Key (*func)(
const Key key));
70 struct cc_hash * hashtable;
71 static void copyval(Key key,
void * value,
void * data);
76 #endif // !COIN_SBDICT_H
void makePList(SbPList &keys, SbPList &values)
Definition: SbDict.cpp:206
void applyToAll(void(*rtn)(Key key, void *value)) const
Definition: SbDict.cpp:170
SbDict & operator=(const SbDict &from)
Definition: SbDict.cpp:84
SbBool find(const Key key, void *&value) const
Definition: SbDict.cpp:136
The SbPList class is a container class for void pointers.
Definition: SbPList.h:31
SbDict(const int entries=251)
Definition: SbDict.cpp:56
void setHashingFunction(Key(*func)(const Key key))
Definition: SbDict.cpp:228
void clear(void)
Definition: SbDict.cpp:111
The SbDict class organizes a dictionary of keys and values.
Definition: SbDict.h:47
SbBool enter(const Key key, void *const value)
Definition: SbDict.cpp:125
~SbDict()
Definition: SbDict.cpp:74
SbBool remove(const Key key)
Definition: SbDict.cpp:146
Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.
Generated on Wed Jul 24 2019 for Coin by Doxygen. 1.8.17