HashTablePart

If store_values = false then table works like hashset

Members

Aliases

allocator
alias allocator = Alloc.instance
Undocumented in source.

Functions

clear
void clear()
Undocumented in source. Be warned that the author may not have intended to support it.
getStorage
void[] getStorage()
Undocumented in source. Be warned that the author may not have intended to support it.
remove
bool remove(Key key)

Returns false if no value was deleted, true otherwise

reserve
void reserve(size_t amount)
Undocumented in source. Be warned that the author may not have intended to support it.
setStorage
void setStorage(void[] data, size_t length, size_t occupiedBuckets)

data must be allocated with allocator of this object

Manifest constants

Bucket_size
enum Bucket_size;
Undocumented in source.
Bucket_size
enum Bucket_size;
Undocumented in source.
USES_GC
enum USES_GC;
Undocumented in source.

Mixins

__anonymous
mixin HashMapImpl
Undocumented in source.
__anonymous
mixin HashSetImpl
Undocumented in source.

Properties

empty
bool empty [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

capacity
size_t capacity;
Undocumented in source.
debugId
void* debugId;
Undocumented in source.
keyBuckets
KeyBucketT* keyBuckets;
Undocumented in source.
length
size_t length;
Undocumented in source.
occupiedBuckets
size_t occupiedBuckets;
Undocumented in source.

Mixed In Members

From mixin HashMapImpl

values
Value* values;
Undocumented in source.
KeyT
alias KeyT = Key
Undocumented in source.
ValueT
alias ValueT = Value
Undocumented in source.
removeByPtr
void removeByPtr(Value* value)

Removes value via pointer returned by getOrCreate or opIn Prevents extra lookup

put
alias put = tryAssignValue
Undocumented in source.
opIndexAssign
void opIndexAssign(Value value, Key key)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinaryRight
inout(Value)* opBinaryRight(Key key)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
inout(Value) opIndex(Key key)
Undocumented in source. Be warned that the author may not have intended to support it.
get
Value get(Key key, Value default_value)
Undocumented in source. Be warned that the author may not have intended to support it.
getOrCreate
Value* getOrCreate(Key key, Value default_value)
Undocumented in source. Be warned that the author may not have intended to support it.
getOrCreate
Value* getOrCreate(Key key, bool wasCreated, Value default_value)
Undocumented in source. Be warned that the author may not have intended to support it.
opApply
int opApply(int delegate(ref Value) del)
Undocumented in source. Be warned that the author may not have intended to support it.
opApply
int opApply(int delegate(in Key, ref Value) del)
Undocumented in source. Be warned that the author may not have intended to support it.
byKey
auto byKey()
Undocumented in source. Be warned that the author may not have intended to support it.
printBuckets
void printBuckets()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
void toString(void delegate(const(char)[]) sink)
Undocumented in source. Be warned that the author may not have intended to support it.

From mixin HashSetImpl

put
void put(Key key)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinaryRight
bool opBinaryRight(Key key)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
bool opIndex(Key key)
Undocumented in source. Be warned that the author may not have intended to support it.
opApply
int opApply(int delegate(in Key) del)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
void toString(void delegate(const(char)[]) sink)
Undocumented in source. Be warned that the author may not have intended to support it.
dumpBuckets
void dumpBuckets()
Undocumented in source. Be warned that the author may not have intended to support it.
printBuckets
void printBuckets()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta