Package schrodinger :: Module structure :: Class _AtomIterator
[hide private]
[frames] | no frames]

Class _AtomIterator

Iterates over each _StructureAtom in a _Molecule, _Chain, _Residue or _Ring.

Instance Methods [hide private]
 
__init__(self, st, atoms)
Constructor takes a list of atom numbers to iterate over.
 
__len__(self)
Return number of atoms in this molecule/chain/residue/ring.
 
__iter__(self)
Iterator through atoms in this molecule/chain/residue/ring.
 
__getitem__(self, idx)
Return atom <idx> of the molecule/chain/residue/ring.
Method Details [hide private]

__getitem__(self, idx)
(Indexing operator)

 

Return atom <idx> of the molecule/chain/residue/ring. Starts at 1.