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

Class _AtomIterator

object --+
         |
        _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.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, st, atoms)
(Constructor)

 

Constructor takes a list of atom numbers to iterate over.

Overrides: object.__init__

__getitem__(self, idx)
(Indexing operator)

 

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