CSet:new

CSet Class


The CSet class manages a list of objects. This is different from the indexed list managed by the CArray class.

Usage

Construction

Object = CSet:new()

Destruction

Object:delete()

Properties

This class has no exposed properties.

Construction

new

Creates a new instance of the CSet class

delete

Deletes the instance of the CSet object.

Copy

Copies this CSet to a new CSet

Operations

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