|
Open Babel
3.0
|
#include <openbabel/obiter.h>
Public Member Functions | |
| OBMolPairIter () | |
| OBMolPairIter (OBMol *mol) | |
| OBMolPairIter (OBMol &mol) | |
| OBMolPairIter (const OBMolPairIter &ai) | |
| ~OBMolPairIter () | |
| OBMolPairIter & | operator= (const OBMolPairIter &ai) |
| operator bool () const | |
| OBMolPairIter & | operator++ () |
| std::vector< unsigned int > | operator* () const |
Iterate over all pairs of atoms (>1-4) in an OBMol.
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:
|
inline |
| OBMolPairIter | ( | OBMol * | mol | ) |
| OBMolPairIter | ( | OBMol & | mol | ) |
| OBMolPairIter | ( | const OBMolPairIter & | ai | ) |
|
inline |
| OBMolPairIter & operator= | ( | const OBMolPairIter & | ai | ) |
|
inline |
| OBMolPairIter & operator++ | ( | ) |
Preincrement – advance to the next 1-4 atom pair and return.
|
inline |
1.8.13