Open Babel
3.0
|
#include <openbabel/obiter.h>
Public Member Functions | |
OBAtomAtomIter () | |
OBAtomAtomIter (OBAtom *atm) | |
OBAtomAtomIter (OBAtom &atm) | |
OBAtomAtomIter (const OBAtomAtomIter &ai) | |
~OBAtomAtomIter () | |
OBAtomAtomIter & | operator= (const OBAtomAtomIter &ai) |
operator bool () const | |
OBAtomAtomIter & | operator++ () |
OBAtomAtomIter | operator++ (int) |
OBAtom * | operator-> () const |
OBAtom & | operator* () const |
Iterate over all neighboring atoms to an OBAtom.
To facilitate iteration through all neighbors of 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 |
OBAtomAtomIter | ( | OBAtom * | atm | ) |
OBAtomAtomIter | ( | OBAtom & | atm | ) |
OBAtomAtomIter | ( | const OBAtomAtomIter & | ai | ) |
|
inline |
OBAtomAtomIter & operator= | ( | const OBAtomAtomIter & | ai | ) |
|
inline |
OBAtomAtomIter & operator++ | ( | ) |
Preincrement – advance to the next neighbor and return.
OBAtomAtomIter operator++ | ( | int | ) |
Postincrement – return the current neighbor and advance to the next.
|
inline |
|
inline |