Class (Notebook: etaOpt.m) (Context: etaOpt`)
Inheritance:
container
Public Methods
-
Public Method appendTo()
-
Public Method evaluateForEachItem()
-
Public Method giveCurrent()
-
Public Method giveFirst()
-
Public Method giveItem()
-
Public Method giveLast()
-
Public Method giveList()
-
Public Method giveName()
-
Public Method giveNext()
-
Public Method giveNumberOf()
-
Public Method givePosition()
-
Public Method givePrevious()
-
Public Method isFirst()
-
Public Method isLast()
-
Public Method moveTo()
-
Public Method moveToFirst()
-
Public Method moveToLast()
-
Public Method setList()
-
Public Method setName()
Protected Fields
-
Instancevariable curPos
-
Instancevariable myList
-
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...
Instancevariable curPos
Instancevariable myList
Instancevariable myName
Public Method appendTo()
- appendTo[item] appends "item" to the itemlist.
Public 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}}
Public Method giveCurrent()
- giveCurrent[] returns the current item in the list. If there is no list or no item to return, it returns Null.
Public Method giveFirst()
- giveFirst[] returns the first item in the list. If there is no list or no item to return, it returns Null.
Public 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.
Public Method giveLast()
- giveLast[] returns the last item in the list. If there is no list or no item to return, it returns Null.
Public Method giveList()
- giveList[] returns the whole list of items.
Public Method giveName()
- giveName[] returns the name of the container as string.
Public Method giveNext()
- giveNext[] returns the next item in list. If there is no list or no item to return, it returns Null.
Public Method giveNumberOf()
- giveNumberOf[] returns the number of items in the list.
Public Method givePosition()
- givePosition[] returns the current position in the item list. I.e. giveItem[givePosition] is the same as giveCurrent[].
Public Method givePrevious()
- givePrevious[] returns the previous item in list. If there is no list or no item to return, it returns Null.
Public 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.
Public 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.
Public Method moveTo()
- moveToLast[position] moves to a given position in the list but returns nothing. I.e. moveTo[3];givePosition[] returns 3.
Public Method moveToFirst()
- moveToFirst[] moves to the first item of the list but returns nothing. I.e. moveToFirst[];isFirst[] returns True.
Public Method moveToLast()
- moveToLast[] moves to the last item of the list but returns nothing. I.e. moveToLast[];isLast[] returns True.
Public Method setList()
- setList[list] sets the whole list. I.e. setList[{item1,item2}].
Public 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++.