dci - Double Linked Cell List Iterator

Module Description

The dci module implements an iterator on the double linked cell list [dcl].

Module Words

Iterator structure

dci% ( - n )
Get the required space for a dci data structure

Iterator creation, initialisation and destruction

dci-init ( w:dcl w:dci - )
Initialise the iterator with a dcl list

dci-create ( C: w:dcl "name" - R: - w )
Create a named iterator in the dictionary

dci-new ( w:dcl - w:dci )
Create an iterator on the heap

dci-free ( w:dci - )
Free the iterator from the heap

Member words

dci-get ( w:dci - w true | false )
Get the cell data from the current record

dci-set ( w w:dci - )
Set the cell data for the current record

Iterator words

dci-first ( w:dci - w true | false )
Move the iterator to the first record

dci-next ( w:dci - w true | false )
Move the iterator to the next record

dci-prev ( w:dci - w true | false )
Move the iterator to the previous record

dci-last ( w:dci - w true | false )
Move the iterator to the last record

dci-move ( w w:dci - f )
Move the iterator to the record with the cell data

dci-first? ( w:dci - f )
Check if the iterator is on the first record

dci-last? ( w:dci - f )
Check if the iterator is on the last record

dci-insert-after ( w w:dci - )
Insert the cell data after the current record

Inspection

dci-dump ( w:dci - )
Dump the iterator


generated 09-Jan-2007 by ofcfrth-0.2.0