[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.6 MELT c-iterators

There are 6 c-iterators.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.6.1 FOREACH_LONG_UPTO

C-iterator defined at file ‘warmelt-base.melt’, line 349.

c-iterator start formals:

indextypename
0LONGIMIN
1LONGIMAX

c-iterator body formals:

indextypename
0LONGIX

C-iterator description: The FOREACH_LONG_UPTO c-iterator provides the usual ascending integer iterator. Start formals are IMIN, the minimum start integer, and IMAX, le maximal ending integer. Local formal is IX, the current index. The body is executed for each integer value IX from IMIN to IMAX included.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.6.2 FOREACH_IN_MULTIPLE_BACKWARD

C-iterator defined at file ‘warmelt-first.melt’, line 3248.

c-iterator start formals:

indextypename
0VALUETUP

c-iterator body formals:

indextypename
0VALUECOMP
1LONGIX

C-iterator description: Iterate backwards from last to first in the given tuple TUP for each component COMP at index IX


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.6.3 FOREACH_IN_MULTIPLE

C-iterator defined at file ‘warmelt-first.melt’, line 3232.

c-iterator start formals:

indextypename
0VALUETUP

c-iterator body formals:

indextypename
0VALUECOMP
1LONGIX

C-iterator description: Iterate in the given tuple TUP for each component COMP at index IX


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.6.4 FOREACH_IN_LIST

C-iterator defined at file ‘warmelt-first.melt’, line 3083.

c-iterator start formals:

indextypename
0VALUELIS

c-iterator body formals:

indextypename
0VALUECURPAIR
1VALUECURCOMP

C-iterator description: The FOREACH_IN_LIST iterator goes within a list, given by the start formal LIS. Local formals are CURPAIR, bound to the current pair, and CURCOMP, bound to the current component within the list.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.6.5 FOREACH_IN_MAPSTRING

C-iterator defined at file ‘warmelt-first.melt’, line 1244.

c-iterator start formals:

indextypename
0VALUESTRMAP

c-iterator body formals:

indextypename
0VALUECURAT
1VALUECURVA

C-iterator description: The FOREACH_IN_MAPSTRING c-iterator iterates inside the given STRMAP and retrieves a CURAT string attribute value and its CURVA value. If CURVA happens to be an instance of CLASS_NAMED with a name equal to the string key, we use it as CURAT otherwise we make a CURAT string.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.6.6 FOREACH_IN_MAPOBJECT

C-iterator defined at file ‘warmelt-first.melt’, line 1182.

c-iterator start formals:

indextypename
0VALUEOBJMAP

c-iterator body formals:

indextypename
0VALUECURAT
1VALUECURVA

C-iterator description: The FOREACH_IN_MAPOBJECT c-iterator iterates inside the given OBJMAP and retrieves a CURAT attribute and its CURVA value.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]

This document was generated on June 22, 2011 using texi2html 1.82.