Open Babel
3.0
|
#include <openbabel/obiter.h>
Public Member Functions | |
OBMolAngleIter () | |
OBMolAngleIter (OBMol *mol) | |
OBMolAngleIter (OBMol &mol) | |
OBMolAngleIter (const OBMolAngleIter &ai) | |
~OBMolAngleIter () | |
OBMolAngleIter & | operator= (const OBMolAngleIter &ai) |
operator bool () const | |
OBMolAngleIter & | operator++ () |
std::vector< unsigned int > | operator* () const |
Iterate over all angles in an OBMol.
To facilitate iteration through all angles 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 |
OBMolAngleIter | ( | OBMol * | mol | ) |
OBMolAngleIter | ( | OBMol & | mol | ) |
OBMolAngleIter | ( | const OBMolAngleIter & | ai | ) |
|
inline |
OBMolAngleIter & operator= | ( | const OBMolAngleIter & | ai | ) |
|
inline |
OBMolAngleIter & operator++ | ( | ) |
Preincrement – advance to the next angle and return.
|
inline |