Open Babel
3.0
|
#include <openbabel/obiter.h>
Public Member Functions | |
OBResidueIter () | |
OBResidueIter (OBMol *mol) | |
OBResidueIter (OBMol &mol) | |
OBResidueIter (const OBResidueIter &ri) | |
~OBResidueIter () | |
OBResidueIter & | operator= (const OBResidueIter &ri) |
operator bool () const | |
OBResidueIter & | operator++ () |
OBResidueIter | operator++ (int) |
OBResidue * | operator-> () const |
OBResidue & | operator* () const |
Iterate over all residues in an OBMol.
To facilitate iteration through all residues in a molecule, without resorting to residue 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 |
OBResidueIter | ( | OBMol * | mol | ) |
OBResidueIter | ( | OBMol & | mol | ) |
OBResidueIter | ( | const OBResidueIter & | ri | ) |
|
inline |
OBResidueIter & operator= | ( | const OBResidueIter & | ri | ) |
|
inline |
OBResidueIter & operator++ | ( | ) |
Preincrement – advance to the next residue and return.
OBResidueIter operator++ | ( | int | ) |
Postincrement – return the current state and advance to the next residue.
|
inline |
|
inline |