CSet Class Description


The CSet class manages a collection of objects. This is different from the indexed list ("array") managed by the CArray class.

Usage

Construction

Object = new_set()

Object = CSet:new()

Destruction

Object:delete()

Creation - Non-class Functions

This function is normally used to create a new CSet object as an alternative to the class-based new method.

new_set

Creates a new instance of the CSet class.

Construction and Destruction - Class Methods

new

Creates a new instance of the CSet class

delete

Deletes the instance of the CSet object.

Operations

Copy

Copies this CSet to a new CSet

Append

Appends the end of the list with a new member.

Count

Returns the number of members actually initialized.

GetMember

Returns the member at an index.

GetIndex

Returns the index of a set member.

Insert

Inserts a new member into the list.

RemoveAt

Removes the member at an index.

RemoveFirst

Removes the member at the head of the list.

RemoveLast

Removes the member at the tail of the list.

Remove

Removes the member by matching its value.

Related Topics

CArray, CValueSet

 


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.