Open Babel
3.0
|
#include <openbabel/obiter.h>
Public Member Functions | |
OBMolTorsionIter () | |
OBMolTorsionIter (OBMol *mol) | |
OBMolTorsionIter (OBMol &mol) | |
OBMolTorsionIter (const OBMolTorsionIter &ai) | |
~OBMolTorsionIter () | |
OBMolTorsionIter & | operator= (const OBMolTorsionIter &ai) |
operator bool () const | |
OBMolTorsionIter & | operator++ () |
std::vector< unsigned int > | operator* () const |
Iterate over all torsions in an OBMol.
To facilitate iteration through all torsions in a molecule, without resorting to atom indexes (which will change in the future), a variety of iterator 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 |
OBMolTorsionIter | ( | OBMol * | mol | ) |
OBMolTorsionIter | ( | OBMol & | mol | ) |
OBMolTorsionIter | ( | const OBMolTorsionIter & | ai | ) |
|
inline |
OBMolTorsionIter & operator= | ( | const OBMolTorsionIter & | ai | ) |
|
inline |
OBMolTorsionIter & operator++ | ( | ) |
Preincrement – advance to the next torsion and return.
|
inline |