|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.atom.iterator.AtomIteratorArrayListSimple
etomica.atom.iterator.AtomIteratorArrayList
public class AtomIteratorArrayList
An atom iterator of the elements from an AtomArrayList (in proper sequence). Iterator will fail if element are added to or removed from list while iteration is proceeding.
| Field Summary | |
|---|---|
protected boolean |
upListNow
|
| Fields inherited from class etomica.atom.iterator.AtomIteratorArrayListSimple |
|---|
atomSetSinglet, cursor, list |
| Constructor Summary | |
|---|---|
AtomIteratorArrayList(IteratorDirective.Direction direction)
Constructs new iterator with an empty list. |
|
AtomIteratorArrayList(IteratorDirective.Direction direction,
int numToSkip)
Constructs new iterator set to iterate given list (upon reset). |
|
AtomIteratorArrayList(IteratorDirective.Direction direction,
int numToSkip,
AtomToIndex atomToIndex,
AtomToAtomLeafList atomToAtomSet)
|
|
| Method Summary | |
|---|---|
IAtom |
nextAtom()
Returns the next iterate and advances the iterator. |
void |
reset()
Puts iterator in state ready to begin iteration. |
void |
setAtom(IAtom atom)
Sets the first atom for iteration. |
int |
size()
Returns the number of iterates that would be given by this iterator if reset with the current list. |
void |
unset()
Puts iterator in state in which hasNext is false. |
| Methods inherited from class etomica.atom.iterator.AtomIteratorArrayListSimple |
|---|
nBody, next, setList |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface etomica.atom.iterator.AtomLeafsetIterator |
|---|
next |
| Methods inherited from interface etomica.atom.iterator.AtomsetIterator |
|---|
nBody |
| Field Detail |
|---|
protected final boolean upListNow
| Constructor Detail |
|---|
public AtomIteratorArrayList(IteratorDirective.Direction direction)
public AtomIteratorArrayList(IteratorDirective.Direction direction,
int numToSkip)
public AtomIteratorArrayList(IteratorDirective.Direction direction,
int numToSkip,
AtomToIndex atomToIndex,
AtomToAtomLeafList atomToAtomSet)
| Method Detail |
|---|
public IAtom nextAtom()
nextAtom in interface AtomIteratornextAtom in class AtomIteratorArrayListSimplepublic int size()
size in interface AtomsetIteratorsize in class AtomIteratorArrayListSimplepublic void reset()
reset in interface AtomsetIteratorreset in class AtomIteratorArrayListSimplepublic void unset()
AtomIteratorArrayListSimple
unset in interface AtomsetIteratorunset in class AtomIteratorArrayListSimplepublic void setAtom(IAtom atom)
setAtom in interface AtomIteratorAtomDependent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||