Data Fields | |
void(* | pick )(const UBuffer *buf, UIndex n, UCell *res) |
Get a single value from the series. | |
void(* | poke )(UBuffer *buf, UIndex n, const UCell *val) |
Replace a single value in the series. | |
int(* | append )(UThread *, UBuffer *buf, const UCell *val) |
Append a value to the series. | |
int(* | insert )(UThread *, UBuffer *buf, UIndex index, const UCell *val, UIndex part) |
Insert a value into the series. | |
int(* | change )(UThread *, USeriesIterM *si, const UCell *val, UIndex part) |
Change part of the series. | |
void(* | remove )(UThread *, USeriesIterM *si, UIndex part) |
Remove part of the series. | |
void(* | reverse )(const USeriesIterM *si) |
Reverse series elements. | |
int(* | find )(UThread *, const USeriesIter *si, const UCell *val, int opt) |
Search for a value in the series. |
void(* USeriesType::pick)(const UBuffer *buf, UIndex n, UCell *res) |
Get a single value from the series.
buf | Series buffer to pick from. | |
n | Zero-based index of element to pick. | |
res | Result of picked value. |
void(* USeriesType::poke)(UBuffer *buf, UIndex n, const UCell *val) |
Replace a single value in the series.
buf | Series buffer to modify. | |
n | Zero-based index of element to replace. | |
val | Value to replace. |
int(* USeriesType::append)(UThread *, UBuffer *buf, const UCell *val) |
Append a value to the series.
buf | Series buffer to append to. | |
val | Value to append. |
int(* USeriesType::insert)(UThread *, UBuffer *buf, UIndex index, const UCell *val, UIndex part) |
Insert a value into the series.
buf | Series buffer to insert into. | |
index | Position in buf. | |
val | Value to append. | |
part | Limit number of val elements. This will be INT32_MAX by default. |
void(* USeriesType::change)(UThread *, USeriesIterM *si, const UCell *val, UIndex part) |
Change part of the series.
si | Series buffer and change position. Si.end is ignored. | |
val | Replacement value. | |
part | Remove this number of elements and insert replacement. If zero then simply overwrite with val. |
void(* USeriesType::remove)(UThread *, USeriesIterM *si, UIndex part) |
Remove part of the series.
si | Series buffer and position. Si.end is ignored. | |
part | Number of element to remove. |
void(* USeriesType::reverse)(const USeriesIterM *si) |
Reverse series elements.
si | Series buffer and slice to reverse. |
int(* USeriesType::find)(UThread *, const UCell *ser, const UCell *val, int opt) |
Search for a value in the series.
ser | Series cell. | |
val | Value to find. | |
opt | Options. |