Iterate over all rings in an OBMol.
More...
#include <openbabel/obiter.h>
List of all members.
Detailed Description
Iterate over all rings in an OBMol.
- Since:
- version 2.1
To facilitate iteration through all rings in a molecule, without resorting to ring indexes (which may change in the future) a variety of iterator classes and methods are provided. One word of warning is that these iterator methods automatically call OBMol::FindSSSR() which may involve a significant performance hit on large molecules.
Calling iterator classes 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 advance (i.e., there are more rings)
Postincrement -- return the current state and advance to the next ring.
OBRing* operator-> |
( |
) |
const [inline] |
- Returns:
- A pointer to the current ring (if any)
OBRing& operator* |
( |
) |
const [inline] |
- Returns:
- A reference to the current ring (if any)
The documentation for this class was generated from the following files: