14.2 Bond Stereochemistry

Stereochemistry around bonds can be specified in a similar fashion to stereochemistry about atom centers. The request for stereochemistry of a particular class can be made of an OEBondBase using the function HasStereoSpecified(type). The type argument provided to HasStereoSpecified() indicates the type of stereochemistry requested, and must be one of the constants listed in the OEBondStereo namespace. The most commonly requested stereochemistry value of bonds is whether the configuration of two atoms around a non-rotatable bond is cis or trans. The following code sample demonstrates a loop over bonds which tests for bonds with associated stereochemistry, and retrieval of whether the neighboring atoms are cis or trans relative to one another.