Rudiments
|
#include <dictionarycollection.h>
Inherits collection.
Inherited by dictionary< keytype, valuetype >.
The dictionarycollection class is the parent class for all rudiments dictionary collections.
Returns the value associated with "key" or NULL if "key" wasn't found. Note that there is no way to distinguish between failure to find "key" and a valid value of NULL associated with "key".
Implemented in dictionary< keytype, valuetype >.
|
pure virtual |
Sets "k" to the key associated with "key". Returns true on success or false if "key" wasn't found.
Implemented in dictionary< keytype, valuetype >.
|
pure virtual |
Returns a list of the keys in the dictionary.
Implemented in dictionary< keytype, valuetype >.
|
pure virtual |
Returns "true" if insertion order tracking is enabled and false otherwise.
If getTrackInsertionOrder() is true then the order of key insertion is tracked and getKeys() returns a list of keys in the order that they were inserted.
If getTrackInsertionOrder() is false then the order of key insertion is not tracked and getKeys() returns a list of keys in ascending order.
Implemented in dictionary< keytype, valuetype >.
|
inlinevirtual |
Returns "dictionary".
Implements collection.
Returns the value associated with "key" or NULL if "key" wasn't found. Note that there is no way to distinguish between failure to find "key" and a valid value of NULL associated with "key".
Implemented in dictionary< keytype, valuetype >.
|
pure virtual |
Sets "value" to the value associated with "key". Returns true on success or false if "key" wasn't found.
Implemented in dictionary< keytype, valuetype >.
Removes the key-value pair associated with "key". Returns true on success or false if "key" wasn't found.
Implemented in dictionary< keytype, valuetype >.
|
pure virtual |
Sets the value associated with "key" to "value". If "key" already exists, the value currently accociated with it is replaced with "value".
Implemented in dictionary< keytype, valuetype >.
|
pure virtual |
Sets the value associated with each key in the "keys" array to the corresponding value in the "values" array. Assumes that keys is NULL terminated. If "key" already exists, the value currently accociated with it is replaced with "value".
Implemented in dictionary< keytype, valuetype >.
|
pure virtual |
Sets the value associated with each of "count" keys in the "keys" array to the corresponding value in the "values" array. If "key" already exists, the value currently accociated with it is replaced with "value".
Implemented in dictionary< keytype, valuetype >.
|
pure virtual |
Sets the value associated with each key in the "keys" array to the corresponding value in the "values" array. Assumes that keys is NULL terminated. If "key" already exists, the value currently accociated with it is replaced with "value".
Implemented in dictionary< keytype, valuetype >.
|
pure virtual |
Sets the value associated with each of "count" keys in the "keys" array to the corresponding value in the "values" array. If "key" already exists, the value currently accociated with it is replaced with "value".
Implemented in dictionary< keytype, valuetype >.
|
inlinevirtual |
Writes a representation of the dictionarycollection to standard output.
Implements collection.
|
inlinevirtual |
Writes a representation of the dictionarycollection to "out".
Implements collection.
|
inlinevirtual |
Writes a JSON representation of the dictionarycollection to standard output.
Implements collection.
|
inlinevirtual |
Writes a JSON representation of the dictionarycollection to standard output.
If "indent" is true, then the output is automatically indented. If "indent" is false, then the tree is written without indentation.
Implements collection.
|
inlinevirtual |
Writes a JSON representation of the dictionarycollection to "out".
Implements collection.
|
inlinevirtual |
Writes a JSON representation of the dictionarycollection to "out".
If "indent" is true, then the output is automatically indented. If "indent" is false, then the tree is written without indentation.
Implements collection.