CoreClasses Xojo Plugin

ObjectCollection Class (console safe)

ObjectCollection is a high speed collection class, that uses hash tables to maximise performance.

This class has the benefits of the Xojo Collection but the speed close to a dictionary.

Object
   ObjectCollection

class ObjectCollection implements

IArrayReader

IIterator

Constructors

ObjectCollectionThe default constructor for the ObjectCollection class.
ObjectCollectionA Constructor to construct a ObjectCollection with non distinct keys.

Properties

LastError (console safe) Use this property to get the Last error code generated by the collection. (Description of each possible error code is listed with each method in the class that can generate a error).

Methods

Add (console safe) Use this method to add a object to the collection using object as a key.
Add (console safe) Use this method to add a object to the collection using string as a key.
Clear (console safe) Use this method to clear all items from the collection.
ClearError (console safe) Use this method to clear the last error.
Count (console safe) Use this function to get the number of items in the collection.
Exists (console safe) Use this function to check for existence of a string key in the collection.
Exists (console safe) Use this function to check for existence of a object key in the collection.
GetAt (console safe) Use this function to read a item from the collection by index.
GetItemKey (console safe) Use this function to get a string key for a element specified by index.
GetItemObjectKey (console safe) Use this function to get a object key for a element specified by index.
GetKeySet (console safe) Use this method to get a set of elements with the same string key when the collection is in multikey mode.
GetKeySet (console safe) Use this method to get a set of elements with the same object key when the collection is in multikey mode.
GetNext (console safe) Use this function to get next item from the ObjectCollection.
HasNext (console safe) Use this function to get info if there are more items in the ObjectCollection.
IndexOf (console safe) Returns a index of a element in the collection.
Insert (console safe) Use this method to insert a object to the collection using string as a key to a specific location in the collection.
Insert (console safe) Use this method to insert a object to the collection using object as a key to a specific location in the collection.
Item (console safe) Use this setter/getter function to get or set element by a string key.
Item (console safe) Use this setter/getter function to get or set element by index.
Item (console safe) Use this setter/getter function to get or set element by a object key.
MoveFirst (console safe) Use this method to reset the iterator in the ObjectCollection.
Operator_Subscript (console safe) Implements operator to read from the collection with the ( ) indexer operator. This variation fetches a item by a string key.
Operator_Subscript (console safe) Implements operator to write to the collection with the ( ) indexer operator. This variation sets a item by a integer index.
Operator_Subscript (console safe) Implements operator to write to the collection with the ( ) indexer operator. This variation sets a item by a string key.
Operator_Subscript (console safe) Implements operator to write to the collection with the ( ) indexer operator. This variation sets a item by a object key.
Operator_Subscript (console safe) Implements operator to read from the collection with the ( ) indexer operator. This variation fetches a item by a object key.
Operator_Subscript (console safe) Implements operator to read from the collection with the ( ) indexer operator. This variation fetches a item by a integer index.
PeekNext (console safe) Use this function to peek at next item from the ObjectCollection without iterating to next item.
Remove (console safe) Use this method to add remove object from the collection by a given object key.
Remove (console safe) Use this method to add remove object from the collection by a given string key.
Remove (console safe) Use this method to add remove object from the collection by a given index.
Sort (console safe) Use this method to sort the collection.

Supported Platforms:

  • MacOS X Carbon
  • MacOS X Cocoa 32 bit
  • MacOS X Cocoa 64 bit
  • Windows 32 bit
  • Windows 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM