Method Summary | |
---|---|
static realseq | create
()
Creates a new empty sequence. |
double | get
(int idx)
Returns the value of the sequence element with the specified index. If the index is out of range, this method throws exception cipXInvalidSeqIndex. |
int | getarraysize
()
Returns current number of elements in the sequence. |
void | insert
(int idx, double value)
Inserts an element with the specified value in front of the sequence element with the specified index. If the index is out of range, the sequence is expanded to include this index. |
void | insertseq
(int idx, realseq seq)
Inserts elements from the list passed as the second argument in front of the sequence element with the specified index. If the index is out of range, the sequence is expanded to include this index. |
void | removerange
(int frominc, int toexcl)
Removes elements in the specified range from the sequence. The first argument specifies the index of the first element to be removed. The second argument specifies the index of the element immediately after the last in the range to be removed. |
void | set
(int idx, double value)
Assigns a value to the sequence element with the specified index. If the index is out of range, the sequence is expanded to include this index. |
Method Detail |
---|
getarraysize |
---|
int | getarraysize | () |
Returns current number of elements in the sequence.
|
get |
---|
double | get | (int idx) |
Returns the value of the sequence element with the specified index. If the index is out of range, this method throws exception cipXInvalidSeqIndex.
|
set |
---|
void | set | (int idx, double value) |
Assigns a value to the sequence element with the specified index. If the index is out of range, the sequence is expanded to include this index.
|
removerange |
---|
void | removerange | (int frominc, int toexcl) |
Removes elements in the specified range from the sequence. The first argument specifies the index of the first element to be removed. The second argument specifies the index of the element immediately after the last in the range to be removed.
|
insert |
---|
void | insert | (int idx, double value) |
Inserts an element with the specified value in front of the sequence element with the specified index. If the index is out of range, the sequence is expanded to include this index.
|
insertseq |
---|
void | insertseq | (int idx, realseq seq) |
Inserts elements from the list passed as the second argument in front of the sequence element with the specified index. If the index is out of range, the sequence is expanded to include this index.
|
create |
---|
static realseq | create | () |
Creates a new empty sequence.
|