next up previous contents
Next: Translation of overall construct Up: class Index Previous: Constructor

Methods

begin()
Used to implement the general overall construct--a distributed loop. Begins an enumeration of the elements of the range mapped to the local process. On exit from this member, the Location component of the index represents the first element of the local segment of the rangegif.

If i is the loop index, the idiom for the loop is

  for(i.begin() ; i.test() ; i.next())
    S

The member test() is inherited from LocBlocksIndex (see section 7.2).

next()
Move to next element in enumeration.



Guansong Zhang
Fri Oct 9 12:29:23 EDT 1998