Iterate over all pairs of atoms (>1-4) in an OBMol.
More...
#include <openbabel/obiter.h>
List of all members.
Detailed Description
Iterate over all pairs of atoms (>1-4) in an OBMol.
- Since:
- version 2.1.
To facilitate iteration through all pairs of atoms in a molecule, without resorting to bond indexes (which may change in the future), a variety of iterators are provided. These pairs of atoms are separated by 4 atoms or more (i.e., these are non-bonded interactions).
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 1-4 atom pairs)
Preincrement -- advance to the next 1-4 atom pair and return.
std::vector<unsigned int> operator* |
( |
) |
const [inline] |
- Returns:
- A vector of two atom indexes specifying the 1-4 atom pair
- See also:
- OBAtom::GetIdx()
The documentation for this class was generated from the following files: