Open Babel
3.0
|
#include <openbabel/obiter.h>
Public Member Functions | |
OBMolBondIter () | |
OBMolBondIter (OBMol *mol) | |
OBMolBondIter (OBMol &mol) | |
OBMolBondIter (const OBMolBondIter &bi) | |
~OBMolBondIter () | |
OBMolBondIter & | operator= (const OBMolBondIter &bi) |
operator bool () const | |
OBMolBondIter & | operator++ () |
OBMolBondIter | operator++ (int) |
OBBond * | operator-> () const |
OBBond & | operator* () const |
Iterate over all bonds in an OBMol.
To facilitate iteration through all bonds in a molecule, without resorting to bond indexes (which may change in the future), a variety of iterators are provided.
This has been made significantly easier by a series of macros in the obiter.h header file:
Here is an example:
|
inline |
OBMolBondIter | ( | OBMol * | mol | ) |
OBMolBondIter | ( | OBMol & | mol | ) |
OBMolBondIter | ( | const OBMolBondIter & | bi | ) |
|
inline |
OBMolBondIter & operator= | ( | const OBMolBondIter & | bi | ) |
|
inline |
OBMolBondIter & operator++ | ( | ) |
Preincrement – advance to the next bond and return.
OBMolBondIter operator++ | ( | int | ) |
Postincrement – return the current bond and advance to the next.
|
inline |
|
inline |