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()

Data Members

There are no data members.

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