next up previous contents
Next: Use of AllBlocksIndex in Up: class AllBlocksIndex Previous: Constructor

Methods

beginAllBlk()
Begins an enumeration of all blocks of the range. On exit from this member, the Block componenent of the Index contains the parameters of the first (non-empty) block of the range, and the Location component represents the first element (smallest global subscript) in that block. ``First block'' simply means first in the enumeration--it does not guarantee that the block contains smaller subscripts than later blocks.

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

  for(i.beginAllBlk() ; i.test() ; i.nextAllBlk())
    S

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

nextAllBlk()
Move to next (non-empty) block in the enumeration, updating the Block and Location components.



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