- has
bool has(string key)
Undocumented in source. Be warned that the author may not have intended to support it.
- insert
void insert()
This function works like:
// laa is an instance of LazedAssocArray
laa["key"] = new T;
with following way:
laa.insert!("key", "new T");
- insert
void insert()
Undocumented in source. Be warned that the author may not have intended to support it.
- insert
void insert()
Undocumented in source. Be warned that the author may not have intended to support it.
- insert
void insert(string key, T delegate() value, bool always)
Undocumented in source. Be warned that the author may not have intended to support it.
- insert
void insert(string key, T function() value, bool always)
Undocumented in source. Be warned that the author may not have intended to support it.
- link
void link(string alternative, string key)
- opIndex
T opIndex(string key)
An overloaded function of opIndex
This function hooks: laa["key"] event.
- opIndexAssing
T opIndexAssing(T value, string key)
An overloaded function of opIndexAssing
This function hooks: laa["key"] = value; event but this function might be no use
- set
void set(string key, T value)
Set the value with the key.
This function works like:
laa["key"] = value;
with
laa.set("key", value)
- setupAll
void setupAll()
Undocumented in source. Be warned that the author may not have intended to support it.
- setupWith
void setupWith(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
Lazed Associative Array
For instance; assocArray["key"] = new ValueType The above code create a new instance of ValueType with some consts(memory amount and time). However it likely to be a bobottleneck if the value isn't needed. Then this class provides lazed associative array, this class willn't create an instance until the value become needed. In other words, this is sort of lazy evaluation for performance.