Inherits:
::tycho::Object
-
Source File -
Contents:
public methods
This is a circular list with methods for adding elements at any point.
Each element must be a distinct string. The elements of the list can
converted to an ordinary Tcl list starting with any specified element.
Public constructs
-
append
element {after {}}
- Append an element, at the end or after the given element.
If only one argument is given, the element is appended at the end.
Otherwise, it is appended after the element given by the second argument.
If the second argument gives an invalid element, an error is reported.
If the element already exists in the list, it is first removed.
-
clear
- Reinitialize the list.
-
elements
{start {}}
- Return the elements as a list, optionally starting at the given element.
If no argument is given, then we start at the first element appended.
-
insert
element {before {}}
- Insert an element in the list.
If only one argument is given, the element is prepended at the beginning.
Otherwise, it is inserted before the element given by the second argument.
If the second argument gives an invalid element, an error is reported.
If the element already exists in the list, it is first removed.
-
remove
element
- Remove an element from the list.
Index of classes
Author: Edward A. Lee
Version: @(#)CircularList.itcl 1.9 11/12/96
Copyright: (c) 1995-1996 The Regents of the University of California.