rt.aaA

Part of the D programming language runtime library. Implementation of associative arrays.

Members

Aliases

AA
alias AA = BB*
Undocumented in source.

Functions

_aaApply
int _aaApply(AA aa, size_t keysize, dg_t dg)

'apply' for associative arrays - to support foreach

_aaApply2
int _aaApply2(AA aa, size_t keysize, dg2_t dg)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
_aaDel
void _aaDel(AA aa, TypeInfo keyti, void* pkey)

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

_aaEq
int _aaEq(AA aa, AA ab, TypeInfo_AssociativeArray ti)
Undocumented in source. Be warned that the author may not have intended to support it.
_aaGet
void* _aaGet(AA* aa_arg, TypeInfo keyti, size_t valuesize, void* pkey)

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

_aaIn
void* _aaIn(AA aa, TypeInfo keyti, void* pkey)

Get pointer to value in associative array indexed by key. Returns null if it is not already there. Used for both "aakey" and "key in aa"

_aaKeys
void[] _aaKeys(AA aa, size_t keysize)

Produce array of N byte keys from aa. The actual type is painted on the return value by the frontend This means the returned length should be the number of elements

_aaLen
size_t _aaLen(AA aa)

Determine number of entries in associative array.

_aaRehash
void* _aaRehash(AA* paa, TypeInfo keyti)

Rehash an array.

_aaValues
void[] _aaValues(AA aa, size_t keysize, size_t valuesize)

Produce array of values from aa. The actual type is painted on the return value by the frontend This means the returned length should be the number of elements

aligntsize
size_t aligntsize(size_t tsize)

Align to next pointer boundary, so that GC won't be faced with misaligned pointers in value.

Static variables

prime_list
size_t[] prime_list;
Undocumented in source.

Structs

BB
struct BB
Undocumented in source.
aaA
struct aaA
Undocumented in source.

Meta