CoreClasses Xojo Plugin

ObjectDictionary Class (console safe)

ObjectDictionary is a high speed dictionary class, that uses hash tables to maximise performance.

Object
   ObjectDictionary

class ObjectDictionary

Constructors

ObjectDictionaryThe default constructor for the ObjectDictionary.
ObjectDictionaryA Constructor to construct a ObjectDictionary with non distinct keys.

Properties

LastErrorUse this property to get the Last error code generated by the dictionary.

Methods

AddUse this method to add a object to the dictionary using object as a key.
AddUse this method to add a object to the dictionary using string as a key.
ClearUse this method to clear all items from the dictionary.
ClearErrorUse this method to clear the last error.
CountUse this function to get the number of items in the dictionary.
ExistsUse this function to check for existence of a object key in the dictionary.
ExistsUse this function to check for existence of a string key in the dictionary.
GetKeySetUse this method to get a set of elements with the same object key when the dictionary is in multikey mode.
GetKeySetUse this method to get a set of elements with the same string key when the dictionary is in multikey mode.
GetObjectKeysGets all keys in the dictionary that are object based and returns them as Xojo array of objects.
GetStringKeysGets all keys in the dictionary that are string based and returns them as Xojo array of string.
GetValuesGets all values in the dictionary and returns them as Xojo array of Objects.
ItemUse this setter/getter function to get or set element by a object key.
ItemUse this setter/getter function to get or set element by a string key.
Operator_SubscriptImplements operator to read from the dictionary with the ( ) indexer operator. This variation fetches a item by a object key.
Operator_SubscriptImplements operator to write to the dictionary with the ( ) indexer operator. This variation sets a item by a object key.
Operator_SubscriptImplements operator to read from the dictionary with the ( ) indexer operator. This variation fetches a item by a string key.
Operator_SubscriptImplements operator to write to the dictionary with the ( ) indexer operator. This variation sets a item by a string key.
RemoveUse this method to add remove object from the dictionary by a given object key.
RemoveUse this method to add remove object from the dictionary by a given string key.
WalkCalls the given delegate routine for each value in the dictionary.

Delegates

WalkObjectDictionaryDelegate (console safe) A delegate for the Walk method on this class.

Supported Platforms:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit
  • iOS