Library | Module

Class pfcSimpReps



Description

This interface contains a sequence of simplified rep objects.

The user can access elements by their integer index (position) in the list. Sequence provides methods for positional (indexed) access to its elements. Sequences are zero based.



Property Summary

/* readonly */ numberCount
Returns the number of items in the sequence.



Method Summary

voidAppend ( pfcSimpRep Item )
Adds a new item to the end of the sequence.
voidClear ( )
Removes all items from the sequence.
voidInsert ( number AtIndex , pfcSimpRep Item )
Inserts a new item in front of the sequence item with the specified index. If the index is out of range, the sequence is expanded to include this index.
voidInsertSeq ( number AtIndex , pfcSimpReps Sequence )
Inserts a sequence of items passed as the second argument in front of the sequence item with the specified index. If the index is out of range, the sequence is expanded to include this index.
pfcSimpRepItem ( number Index )
Accesses an item by its index in the sequence. If the index is out of range, this method throws the cipXInvalidSeqIndex exception.
voidRemove ( number FromIndex , number ToIndex )
Removes items in the specified range from the sequence. The first argument specifies the index of the first item to be removed. The second argument specifies the index of the item immediately after the last in the range to be removed.
voidSet ( number Index , pfcSimpRep Item )
Assigns an item to the designated index in the sequence. If the index is out of range, the sequence is expanded to include this index.



Property Detail


/* readonly */ numberCount

Returns the number of items in the sequence.


Method Detail


voidAppend ( pfcSimpRep Item )

Adds a new item to the end of the sequence.



voidClear ( )

Removes all items from the sequence.



voidInsert ( number AtIndex , pfcSimpRep Item )

Inserts a new item in front of the sequence item with the specified index. If the index is out of range, the sequence is expanded to include this index.



voidInsertSeq ( number AtIndex , pfcSimpReps Sequence )

Inserts a sequence of items passed as the second argument in front of the sequence item with the specified index. If the index is out of range, the sequence is expanded to include this index.



pfcSimpRepItem ( number Index )

Accesses an item by its index in the sequence. If the index is out of range, this method throws the cipXInvalidSeqIndex exception.



voidRemove ( number FromIndex , number ToIndex )

Removes items in the specified range from the sequence. The first argument specifies the index of the first item to be removed. The second argument specifies the index of the item immediately after the last in the range to be removed.



voidSet ( number Index , pfcSimpRep Item )

Assigns an item to the designated index in the sequence. If the index is out of range, the sequence is expanded to include this index.