24 #ifndef OB_TETRAPLANAR_H 25 #define OB_TETRAPLANAR_H 89 template <
typename ConfigType>
90 static ConfigType
ToConfig(
const ConfigType &cfg,
unsigned long start,
93 ConfigType result = cfg;
110 for (
int i = 0; i < 4; ++i) {
111 std::rotate(result.refs.begin(), result.refs.begin() + 1, result.refs.end());
113 if (result.refs.at(0) == start)
Molecule Class.
Definition: mol.h:118
static ConfigType ToConfig(const ConfigType &cfg, unsigned long start, OBStereo::Shape shape=OBStereo::ShapeU)
Definition: tetraplanar.h:90
static void Permutate(Refs &refs, unsigned int i, unsigned int j)
Base class for handling and storing planar stereochemistry with 4 reference atoms.
Definition: tetraplanar.h:83
Process molecular stereochemistry information.
Shape
Definition: stereo.h:108
Base class for all stereochemistry classes.
Definition: stereo.h:321
Global namespace for all Open Babel code.
Definition: alias.h:22