public final class FpDivHardToDRoundIterator extends java.lang.Object implements Iterator<GeneratorResult<FpNumber>>
FpDivHardToDRoundIterator
implements an iterator of hard-to-round test cases for the
division operation operating in the directed round modes (toward zero, toward plus infinity, and
toward minus infinity).
The implementation is based on the following works of David Matula and Lee McFearin:
Modifier | Constructor and Description |
---|---|
protected |
FpDivHardToDRoundIterator(FpDivHardToDRoundIterator r)
Constructs a copy of the iterator.
|
|
FpDivHardToDRoundIterator(FpFormat format)
Constructs a division hard-to-round iterator.
|
Modifier and Type | Method and Description |
---|---|
FpDivHardToDRoundIterator |
clone()
Returns a copy of the iterator.
|
boolean |
hasValue()
Checks if the iterator is not exhausted (a value is available).
|
void |
init()
Initializes the iterator.
|
void |
next()
Makes an iteration.
|
void |
stop()
Stops the iterator.
|
GeneratorResult<FpNumber> |
value()
Returns the current value of the iterator.
|
public FpDivHardToDRoundIterator(FpFormat format)
format
- the format.protected FpDivHardToDRoundIterator(FpDivHardToDRoundIterator r)
r
- the iterator to be copied.public void init()
Iterator
init
in interface Iterator<GeneratorResult<FpNumber>>
public boolean hasValue()
Iterator
hasValue
in interface Iterator<GeneratorResult<FpNumber>>
true
if the iterator is not exhausted; false
otherwise.public GeneratorResult<FpNumber> value()
Iterator
value
in interface Iterator<GeneratorResult<FpNumber>>
public void next()
Iterator
next
in interface Iterator<GeneratorResult<FpNumber>>
public void stop()
Iterator
stop
in interface Iterator<GeneratorResult<FpNumber>>
public FpDivHardToDRoundIterator clone()
Iterator
clone
in interface Iterator<GeneratorResult<FpNumber>>
clone
in class java.lang.Object