AtomsetIterator, MoleculesetIterator, java.io.Serializablepublic class MpiIntraArrayList extends java.lang.Object implements MoleculesetIterator, java.io.Serializable
| Constructor | Description |
|---|---|
MpiIntraArrayList() |
Construct iterator with an empty list.
|
MpiIntraArrayList(IMoleculeList list) |
Constructs iterator to return pairs from the given list.
|
| Modifier and Type | Method | Description |
|---|---|---|
IMoleculeList |
getList() |
Returns the list used to generate the pairs.
|
int |
nBody() |
Returns 2, indicating that this is a pair iterator
|
IMoleculeList |
next() |
Returns the next iterate pair.
|
void |
reset() |
Sets iterator in condition to begin iteration.
|
void |
setList(IMoleculeList newList) |
Sets the list that will be used to generate the pairs.
|
int |
size() |
Returns the number of iterates, which is list.size*(list.size-1)/2
|
void |
unset() |
Sets iterator such that next is null.
|
public MpiIntraArrayList()
public MpiIntraArrayList(IMoleculeList list)
list - public void reset()
reset in interface AtomsetIteratorpublic void unset()
unset in interface AtomsetIteratorpublic int size()
size in interface AtomsetIteratorpublic IMoleculeList next()
next in interface MoleculesetIteratorpublic int nBody()
nBody in interface AtomsetIteratorpublic void setList(IMoleculeList newList)
newList - the new molecule list for iterationpublic IMoleculeList getList()