Feather::Container

Last updated: 8th July 1999 at 10:49 BST
This package defines the "feather::container" interface and some commands which use that interface.

Interface

The interface contains the following members.

Tcl_Obj *(*get) (Tcl_Interp *interp, Tcl_Obj *container, Tcl_Obj *element);
Returns the value associated with the element in the container.
set
Creates an association between the element and the value in the container.
unset
Removes the association between the element and its value in the container.
exists
Checks whether there is an association between the element and a value in the container. Returns 1 if there is and 0 if not.
length
Returns the length of the container. i.e. the number of elements in the container.
begin
Returns an iterator object which refers to the start of the container. It can be used to iterate over the container in the forward direction.
end
Returns an iterator object which refers to the end of the container. It is used to check whether the iteration has completed.


[email protected]