obiter.h File Reference

STL-style iterators for Open Babel. More...

#include <vector>

Go to the source code of this file.

Namespaces

namespace  OpenBabel

Classes

class  OBMolAtomIter
 Iterate over all atoms in an OBMol. More...
class  OBMolBondIter
 Iterate over all bonds in an OBMol. More...
class  OBAtomAtomIter
 Iterate over all neighboring atoms to an OBAtom. More...
class  OBAtomBondIter
 Iterate over all bonds on an OBAtom. More...
class  OBResidueIter
 Iterate over all residues in an OBMol. More...
class  OBResidueAtomIter
 Iterate over all atoms in an OBResidue. More...

Defines

#define FOR_ATOMS_OF_MOL(a, m)   for( OBMolAtomIter a(m); a; a++ )
#define FOR_BONDS_OF_MOL(b, m)   for( OBMolBondIter b(m); b; b++ )
#define FOR_NBORS_OF_ATOM(a, p)   for( OBAtomAtomIter a(p); a; a++ )
#define FOR_BONDS_OF_ATOM(b, p)   for( OBAtomBondIter b(p); b; b++ )
#define FOR_RESIDUES_OF_MOL(r, m)   for( OBResidueIter r(m); r; r++ )
#define FOR_ATOMS_OF_RESIDUE(a, r)   for( OBResidueAtomIter a(r); a; a++ )


Detailed Description

STL-style iterators for Open Babel.


Define Documentation

#define FOR_ATOMS_OF_MOL ( a,
 )     for( OBMolAtomIter a(m); a; a++ )

#define FOR_BONDS_OF_MOL ( b,
 )     for( OBMolBondIter b(m); b; b++ )

#define FOR_NBORS_OF_ATOM ( a,
 )     for( OBAtomAtomIter a(p); a; a++ )

#define FOR_BONDS_OF_ATOM ( b,
 )     for( OBAtomBondIter b(p); b; b++ )

#define FOR_RESIDUES_OF_MOL ( r,
 )     for( OBResidueIter r(m); r; r++ )

#define FOR_ATOMS_OF_RESIDUE ( a,
 )     for( OBResidueAtomIter a(r); a; a++ )