|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.tonbeller.jpivot.util.CubeIndexIterator
public class CubeIndexIterator
generate array of indexes for an n-dimensional qube basically "n" nested loops for (i1 =0; i1 < n1 ; i1++ ) for (i2 =0; i2 < n2 ; i2++ ) ... for (im =0; im < nm ; im++ )
Constructor Summary | |
---|---|
CubeIndexIterator(int[] ni,
boolean firstFast)
c'tor |
Method Summary | |
---|---|
int[] |
next()
|
void |
reset()
reset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CubeIndexIterator(int[] ni, boolean firstFast)
ni
- - array of max indexes for dimensionsfirstFast
- , first index runs fastest if trueMethod Detail |
---|
public int[] next()
public void reset()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |