dni - Double Linked Node List Iterator

Module Description

The dni module implements an iterator on the double linked node list [dnl].

Module Words

Iterator structure

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

Iterator creation, initialisation and destruction

dni-init ( w:dnl w:dni - )
Initialise the iterator with a dnl list

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

dni-new ( w:dnl - w:dni )
Create an iterator on the heap

dni-free ( w:dni - )
Free iterator from heap

Member words

dni-get ( w:dni - w:dnn | nil )
Get the current node

Iterator words

dni-first ( w:dni - w:dnn | nil )
Move the iterator to the first node

dni-next ( w:dni - w:dnn | nil )
Move the iterator to the next node

dni-prev ( w:dni - w:dnn | nil )
Move the iterator to the previous node

dni-last ( w:dni - w:dnn | nil )
Move the iterator to the last node

dni-first? ( w:dni - f )
Check if the iterator is on the first node

dni-last? ( w:dni - f )
Check if the iterator is on the last node

Inspection

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


generated 09-Jan-2007 by ofcfrth-0.2.0