AArray

Associative Array type.

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

apply
int apply(applyDg dg)

For each element in the AArray, call dg(Key* pkey, Value* pvalue) If dg returns !=0, stop and return that value.

del
void del(Key* pkey)

Delete key entry in aa[]. If key is not in aa[], do nothing.

destroy
void destroy()

Frees all the data used by AArray

get
Value* get(Key* pkey)

Get pointer to value in associative array indexed by key. Add entry for key if it is not already there.

isIn
Value* isIn(Key* pkey)

Determine if key is in aa.

keys
Key[] keys()

Produce array of keys from aa.

length
size_t length()
rehash
void rehash()

Rehash an array.

values
Value[] values()

Produce array of values from aa.

Parameters

TKey

type that has members Key, getHash(), and equals()

Value

value type

Meta