AtomIterator, AtomIteratorAtomDependent, AtomLeafsetIterator, AtomsetIterator, AtomsetIteratorDirectablepublic static class MCMoveInsertDeleteLatticeVacancy.AtomIteratorBruteForce extends java.lang.Object implements AtomIteratorAtomDependent, AtomsetIteratorDirectable
| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
all |
|
protected Box |
box |
|
protected int |
cursor |
|
protected AtomSetSinglet |
singlet |
|
protected int |
targetIndex |
| Constructor | Description |
|---|---|
AtomIteratorBruteForce(Box box) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
nBody() |
Returns the number of atoms given in each iterate, i.e., the
size of the atom array returned with each call to next().
|
IAtomList |
next() |
Returns the next AtomSet iterate, or null if hasNext() is false.
|
IAtom |
nextAtom() |
Returns the next atom in the iteration sequence, or
null if hasNext() is false.
|
void |
reset() |
Resets the iterator to loop through its iterates again.
|
void |
setAtom(IAtom atom) |
|
void |
setDirection(IteratorDirective.Direction direction) |
|
int |
size() |
The number of iterates returned by this iterator in its current state.
|
void |
unset() |
Puts iterator in a state in which hasNext() returns false.
|
protected int cursor
protected int targetIndex
protected final AtomSetSinglet singlet
protected final Box box
protected boolean all
public AtomIteratorBruteForce(Box box)
public void unset()
AtomsetIteratorunset in interface AtomsetIteratorpublic int size()
AtomsetIteratorsize in interface AtomsetIteratorpublic void reset()
AtomsetIteratorreset in interface AtomsetIteratorpublic int nBody()
AtomsetIteratornBody in interface AtomsetIteratorpublic IAtomList next()
AtomLeafsetIteratornext in interface AtomLeafsetIteratorpublic IAtom nextAtom()
AtomIteratornextAtom in interface AtomIteratorpublic void setAtom(IAtom atom)
setAtom in interface AtomIteratorAtomDependentpublic void setDirection(IteratorDirective.Direction direction)
setDirection in interface AtomsetIteratorDirectable