In file /home/blah/darwin2k/src/ddcore/misc/ptrList.h:

class objHash

hash table for associating data with synObjects

Public Fields

[more]ptrHash* hash
hash used for storing objects

Public Methods

[more] objHash(int desiredSize = 100)
constructor
[more] ~objHash(void)
destructor
[more]unsigned long computeKey(synObject* obj)
computes a key for obj
[more]objHashRec* getRec(synObject* keyObj)
returns the objHashRec (if any) associated with keyObj
[more]inline int isPresent(synObject* keyObj)
returns 1 if keyObj is in the hash, 0 if not
[more]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).
[more]inline int getData(synObject* keyObj, void** data)
if keyObj is in the hash, *data is set with the associated data pointer.
[more]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
optrHash* hash
hash used for storing objects

o objHash(int desiredSize = 100)
constructor

o ~objHash(void)
destructor

ounsigned long computeKey(synObject* obj)
computes a key for obj

oobjHashRec* getRec(synObject* keyObj)
returns the objHashRec (if any) associated with keyObj

oinline int isPresent(synObject* keyObj)
returns 1 if keyObj is in the hash, 0 if not

oint 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

oinline 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

oint 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++.