Package cds.healpix
Class ToCellItDecorator
- java.lang.Object
-
- cds.healpix.ToCellItDecorator
-
- All Implemented Interfaces:
java.util.Iterator<Cell>
public final class ToCellItDecorator extends java.lang.Object implements java.util.Iterator<Cell>
Range iterator to cell iterator decorator. We could have made this decorator more generic by replacing both the Range and the Cell classes by an interface, adding a object building a Cell from a Range plus the cell depth and hash.- Author:
- F.-X Pineau
-
-
Constructor Summary
Constructors Constructor Description ToCellItDecorator(int dim, int absoluteDephtMax, java.util.Iterator<Range> decorated)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Cell
next()
-
-
-
Constructor Detail
-
ToCellItDecorator
public ToCellItDecorator(int dim, int absoluteDephtMax, java.util.Iterator<Range> decorated)
- Parameters:
dim
- dimension of the z-order curve. For HEALPix, dim = 2, for Time, dim = 1absoluteDephtMax
- for HEALPix, absoluteDephtMax = 29decorated
-
-
-