Iterate over all neighboring atoms to an OBAtom.
More...
#include <openbabel/obiter.h>
List of all members.
Detailed Description
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:
Constructor & Destructor Documentation
Member Function Documentation
operator bool |
( |
) |
const [inline] |
- Returns:
- Whether the iterator can still advance (i.e., visit more neighbors)
Postincrement -- return the current neighbor and advance to the next.
OBAtom* operator-> |
( |
) |
const [inline] |
- Returns:
- a pointer to the current atom
OBAtom& operator* |
( |
) |
const [inline] |
- Returns:
- a reference to the current atom
The documentation for this class was generated from the following files: