rt.compiler.gdc.rt.aaA

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

Members

Aliases

ArrayRet_t
alias ArrayRet_t = void[]
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.
_aaBalance
void _aaBalance(AA* paa)

Balance an array.

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

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

_aaEqual
int _aaEqual(TypeInfo_AssociativeArray ti, AA e1, AA e2)

Compare AA contents for equality.

_aaGetRvaluep
void* _aaGetRvaluep(AA aa, TypeInfo keyti, size_t valuesize, void* pkey)

Get pointer to value in associative array indexed by key. Returns null if it is not already there.

_aaGetp
void* _aaGetp(AA* aa, 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.

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

Determine if key is in aa.

_aaKeys
ArrayRet_t _aaKeys(AA aa, size_t keysize)

Produce array of N byte keys from aa.

_aaLen
size_t _aaLen(AA aa)

Determine number of entries in associative array.

_aaRehash
AA _aaRehash(AA* paa, TypeInfo keyti)

Rehash an array.

_aaValues
ArrayRet_t _aaValues(AA aa, size_t keysize, size_t valuesize)

Produce array of values from aa.

_d_assocarrayliteralTp
BB* _d_assocarrayliteralTp(TypeInfo_AssociativeArray ti, void[] keys, void[] values)

Construct an associative array of type ti from length pairs of key/value pairs.

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

AA
struct AA
Undocumented in source.
Array
struct Array
Undocumented in source.
BB
struct BB
Undocumented in source.
aaA
struct aaA
Undocumented in source.

Meta