In file /home/blah/darwin2k/src/ddcore/misc/ptrList.h:hash table for associating data with synObjects
Public Fields
-
ptrHash* hash
- hash used for storing objects
Public Methods
-
objHash(int desiredSize = 100)
- constructor
-
~objHash(void)
- destructor
-
unsigned long computeKey(synObject* obj)
- computes a key for obj
-
objHashRec* getRec(synObject* keyObj)
- returns the objHashRec (if any) associated with keyObj
-
inline int isPresent(synObject* keyObj)
- returns 1 if keyObj is in the hash, 0 if not
-
int addObject(synObject* keyObj, void* data = 0)
- adds 'keyObj' if not present, and sets the data field to 'data' (even if keyObj was already present).
-
inline int getData(synObject* keyObj, void** data)
- if keyObj is in the hash, *data is set with the associated data pointer.
-
int removeObject(synObject* keyObj, void** objData = 0)
- if keyObj is in the hash, removes it, puts the associated data into *objData (if objData is non-NULL), and returns 1.
Documentation
hash table for associating data with synObjects
- ptrHash* hash
- hash used for storing objects
- objHash(int desiredSize = 100)
- constructor
- ~objHash(void)
- destructor
- unsigned long computeKey(synObject* obj)
- computes a key for obj
- objHashRec* getRec(synObject* keyObj)
- returns the objHashRec (if any) associated with keyObj
- inline int isPresent(synObject* keyObj)
- returns 1 if keyObj is in the hash, 0 if not
- int addObject(synObject* keyObj, void* data = 0)
- adds 'keyObj' if not present, and sets the data field
to 'data' (even if keyObj was already present). Returns 1
if keyObj was present, 0 if not
- inline int getData(synObject* keyObj, void** data)
- if keyObj is in the hash, *data is set with the associated data
pointer. Returns 1 if keyObj was found, 0 if not
- int removeObject(synObject* keyObj, void** objData = 0)
- if keyObj is in the hash, removes it, puts the associated data
into *objData (if objData is non-NULL), and returns 1.
returns 0 otherwise.
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.