Open Babel
3.0
|
#include <openbabel/obiter.h>
Public Member Functions | |
OBResidueAtomIter () | |
OBResidueAtomIter (OBResidue *res) | |
OBResidueAtomIter (OBResidue &res) | |
OBResidueAtomIter (const OBResidueAtomIter &ri) | |
~OBResidueAtomIter () | |
OBResidueAtomIter & | operator= (const OBResidueAtomIter &ri) |
operator bool () const | |
OBResidueAtomIter & | operator++ () |
OBResidueAtomIter | operator++ (int) |
OBAtom * | operator-> () const |
OBAtom & | operator* () const |
Iterate over all atoms in an OBResidue.
To facilitate iteration through all atoms in a residue, without resorting to atom indexes (which may change in the future) a variety of iterator classes and methods are provided.
This has been made significantly easier by a series of macros in the obiter.h header file:
Here is an example:
|
inline |
OBResidueAtomIter | ( | OBResidue * | res | ) |
OBResidueAtomIter | ( | OBResidue & | res | ) |
OBResidueAtomIter | ( | const OBResidueAtomIter & | ri | ) |
|
inline |
OBResidueAtomIter & operator= | ( | const OBResidueAtomIter & | ri | ) |
|
inline |
OBResidueAtomIter & operator++ | ( | ) |
Preincrement – advance to the next atom (if any) and return.
Referenced by OBResidueAtomIter::operator++().
OBResidueAtomIter operator++ | ( | int | ) |
Postincrement – return the current state and advance to the next atom (if any)
|
inline |
|
inline |