CoreClasses REALbasic Plugin

ObjectSet Class

ObjectSet is a high speed container class based on the concept that there can only be one instance of every object. Which means if its hashing algorithms detect that you are adding the same object multiple times then it will only make one record.

Note: ObjectSet is 0 based, that is the first item is number 0.

Object
   ObjectSet

class ObjectSet implements

IArrayReader

IIterator

IObjectAddable

Properties

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

Methods

AddUse this method to add a object to the set container.
AddItemsUse this method to add multiple objects from any container that implements the IIterator interface.
ClearUse this method to clear all items from the set container.
CountUse this function to get the number of items in the set container.
ExistsUse this function to check for existence of a item in the set container.
GetAtUse this function to get item number n from the set container.
GetNextUse to get next item from the ObjectSet.
HasNextUse to get info if there are more items in the ObjectSet.
MoveFirstUse to reset the iterator in the ObjectSet.
PeekNextUse this function to peek at next item from the ObjectSet without causing iteration.
RemoveUse this method to add remove object from the collection by a given index.
RemoveUse this method to add remove object from the collection by a given object.
SortUse this method to sort the set container.

Supported Platforms:

  • PPC - MacOS 9
  • Carbon - MacOS 9 and MacOS X (PEF)
  • MacOS X PPC - (Mach-O)
  • MacOS X Universal Binary (Mach-O)
  • Win32 - Windows
  • Linux x86