Open Babel
3.0
|
#include <openbabel/obiter.h>
Public Member Functions | |
OBAtomBondIter () | |
OBAtomBondIter (OBAtom *atm) | |
OBAtomBondIter (OBAtom &atm) | |
OBAtomBondIter (const OBAtomBondIter &bi) | |
~OBAtomBondIter () | |
OBAtomBondIter & | operator= (const OBAtomBondIter &bi) |
operator bool () const | |
OBAtomBondIter & | operator++ () |
OBAtomBondIter | operator++ (int) |
OBBond * | operator-> () const |
OBBond & | operator* () const |
Iterate over all bonds on an OBAtom.
To facilitate iteration through all bonds on an atom, without resorting to bond 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 |
OBAtomBondIter | ( | OBAtom * | atm | ) |
OBAtomBondIter | ( | OBAtom & | atm | ) |
OBAtomBondIter | ( | const OBAtomBondIter & | bi | ) |
|
inline |
OBAtomBondIter & operator= | ( | const OBAtomBondIter & | bi | ) |
|
inline |
OBAtomBondIter & operator++ | ( | ) |
Preincrement – advance to the next bond and return.
OBAtomBondIter operator++ | ( | int | ) |
Postincrement – return the current state and advance to the next bond.
|
inline |
|
inline |