class container

Class (Notebook: etaOpt.m) (Context: etaOpt`)

Inheritance:

container


Public Methods

[more]Public Method appendTo()
[more]Public Method evaluateForEachItem()
[more]Public Method giveCurrent()
[more]Public Method giveFirst()
[more]Public Method giveItem()
[more]Public Method giveLast()
[more]Public Method giveList()
[more]Public Method giveName()
[more]Public Method giveNext()
[more]Public Method giveNumberOf()
[more]Public Method givePosition()
[more]Public Method givePrevious()
[more]Public Method isFirst()
[more]Public Method isLast()
[more]Public Method moveTo()
[more]Public Method moveToFirst()
[more]Public Method moveToLast()
[more]Public Method setList()
[more]Public Method setName()

Protected Fields

[more]Instancevariable curPos
[more]Instancevariable myList
[more]Instancevariable myName


Documentation

new[] creates an Object container, which is used to navigate through a list of items. Following options are avalaible:
name->"".... each container can have a name, which can be retrieved with giveName[].
item->{}...... a list of items, which can be anything, i.e. an object, a number, another container...
oInstancevariable curPos

oInstancevariable myList

oInstancevariable myName

oPublic Method appendTo()
appendTo[item] appends "item" to the itemlist.

oPublic Method evaluateForEachItem()
evaluateForEachItem[method] this method makes only sense, if container only contains container and Objects. In this case evaluateForEachItem goes down in the hierachy of container, and if it finds an object which is not a container, evaluates the method, and returns the returnvalue if any. I.e. evaluateForEachItem[giveName[]] returns {{cell1,cell2},{cell3}}

oPublic Method giveCurrent()
giveCurrent[] returns the current item in the list. If there is no list or no item to return, it returns Null.

oPublic Method giveFirst()
giveFirst[] returns the first item in the list. If there is no list or no item to return, it returns Null.

oPublic Method giveItem()
giveItem[position] returns the item at given position in the list. I.e. giveItem[3] returns the 3th item in the list. If there is no list or no item to return, it returns Null.

oPublic Method giveLast()
giveLast[] returns the last item in the list. If there is no list or no item to return, it returns Null.

oPublic Method giveList()
giveList[] returns the whole list of items.

oPublic Method giveName()
giveName[] returns the name of the container as string.

oPublic Method giveNext()
giveNext[] returns the next item in list. If there is no list or no item to return, it returns Null.

oPublic Method giveNumberOf()
giveNumberOf[] returns the number of items in the list.

oPublic Method givePosition()
givePosition[] returns the current position in the item list. I.e. giveItem[givePosition] is the same as giveCurrent[].

oPublic Method givePrevious()
givePrevious[] returns the previous item in list. If there is no list or no item to return, it returns Null.

oPublic Method isFirst()
isFirst[] returns the True if the current item is the first item. If there is no list or no item to return, it returns False.

oPublic Method isLast()
isLast[] returns the True if the current item is the last item. If there is no list or no item to return, it returns False.

oPublic Method moveTo()
moveToLast[position] moves to a given position in the list but returns nothing. I.e. moveTo[3];givePosition[] returns 3.

oPublic Method moveToFirst()
moveToFirst[] moves to the first item of the list but returns nothing. I.e. moveToFirst[];isFirst[] returns True.

oPublic Method moveToLast()
moveToLast[] moves to the last item of the list but returns nothing. I.e. moveToLast[];isLast[] returns True.

oPublic Method setList()
setList[list] sets the whole list. I.e. setList[{item1,item2}].

oPublic Method setName()
setName[name] sets the name of the container. I.e. setName["my list"].


Direct child classes:
monoStack
mechStack

Alphabetic index Hierarchy of classes



This page was generated with the help of DOC++.