25 if ((
refs.size() != 3) || (other.
refs.size() != 3))
57 for (
unsigned int i = 0; i < otherConfig.refs.size(); ++i) {
60 if (otherConfig.refs.at(i) == *j)
79 for (
unsigned int i = 0; i < thisConfig.
refs.size(); ++i) {
82 for (
OBStereo::RefIter j = otherConfig.refs.begin(); j != otherConfig.refs.end(); ++j)
83 if (thisConfig.
refs.at(i) == *j)
87 for (
OBStereo::RefIter j = otherConfig.refs.begin(); j != otherConfig.refs.end(); ++j)
89 *j = thisConfig.
refs.at(i);
98 return ((Ni1 + Ni2) % 2 == 0);
103 return !(*
this == other);
131 if ((begin != other.
begin) && (begin != other.
end))
133 if ((end != other.
begin) && (end != other.
end))
135 if ((
refs.size() != 4) || (other.
refs.size() != 4))
155 return (u1.
refs[2] == u2.refs[2]);
173 return !(*
this == other);
200 if ((
refs.size() != 4) || (other.
refs.size() != 4))
220 return (u1.
refs[2] == u2.refs[2]);
238 return !(*
this == other);
static OBSquarePlanarStereo::Config Convert(const OBSquarePlanarConfig &other)
Definition: bindings.h:185
OBStereo::Refs refs
The 3 reference ids.
Definition: tetrahedral.h:176
bool specified
Definition: squareplanar.h:173
bool operator==(const OBTetrahedralConfig &other) const
Definition: bindings.h:21
Stereochemical configuration for square planar stereocenters.
Definition: squareplanar.h:71
OBStereo::Shape shape
The shape of the 4 reference ids.
Definition: squareplanar.h:172
unsigned long center
Definition: bindings.h:106
unsigned long from
Definition: tetrahedral.h:173
Refs::const_iterator ConstRefIter
Definition: stereo.h:164
Definition: bindings.h:182
Implicit Ref (i.e. hydrogen, N lone pair, ...).
Definition: stereo.h:151
Definition: bindings.h:114
OBStereo::Refs refs
Definition: bindings.h:242
static int NumInversions(const Refs &refs)
OBStereo::View view
Specify viewing from or towards the atom with from/towards id.
Definition: tetrahedral.h:178
static OBTetrahedralStereo::Config Convert(const OBTetrahedralConfig &other)
Definition: bindings.h:8
bool operator!=(const OBTetrahedralConfig &other) const
Definition: bindings.h:101
bool operator==(const OBSquarePlanarConfig &other) const
Definition: bindings.h:196
bool specified
Definition: bindings.h:244
static ConfigType ToConfig(const ConfigType &cfg, unsigned long start, OBStereo::Shape shape=OBStereo::ShapeU)
Definition: tetraplanar.h:90
OBStereo::Winding winding
Definition: bindings.h:109
static OBCisTransStereo::Config Convert(const OBCisTransConfig &other)
Definition: bindings.h:117
View
Definition: stereo.h:119
bool operator==(const OBCisTransConfig &other) const
Definition: bindings.h:129
bool specified
Definition: tetrahedral.h:179
static bool ContainsRef(const Refs &refs, unsigned long ref)
Process molecular stereochemistry information.
static bool ContainsSameRefs(const Refs &refs1, const Refs &refs2)
OBStereo::Refs refs
The 4 reference ids.
Definition: cistrans.h:200
Shape
Definition: stereo.h:108
unsigned long from_or_towards
Definition: bindings.h:107
unsigned long end
Definition: cistrans.h:199
Stereochemical configuration for tetrahedral stereocenters.
Definition: tetrahedral.h:84
OBStereo::Refs refs
Definition: bindings.h:108
bool operator!=(const OBSquarePlanarConfig &other) const
Definition: bindings.h:236
OBStereo::Shape shape
The shape of the 4 reference ids.
Definition: cistrans.h:201
unsigned long end
Definition: bindings.h:176
OBStereo::Refs refs
Definition: bindings.h:177
Winding
Definition: stereo.h:130
unsigned long center
Definition: squareplanar.h:170
OBStereo::Refs refs
The 4 reference ids.
Definition: squareplanar.h:171
bool specified
Definition: cistrans.h:202
bool specified
Definition: bindings.h:179
Stereochemical configuration for double-bond cis/trans stereochemistry.
Definition: cistrans.h:99
OBStereo::Shape shape
Definition: bindings.h:243
std::vector< Ref > Refs
Definition: stereo.h:156
OBStereo::View view
Definition: bindings.h:110
unsigned long center
Definition: tetrahedral.h:164
unsigned long center
Definition: bindings.h:241
static ConfigType ToConfig(const ConfigType &cfg, unsigned long from_or_towards, OBStereo::Winding winding=OBStereo::Clockwise, OBStereo::View view=OBStereo::ViewFrom)
Definition: tetranonplanar.h:145
OBStereo::Shape shape
Definition: bindings.h:178
OBStereo::Winding winding
Definition: tetrahedral.h:177
bool specified
Definition: bindings.h:111
unsigned long begin
Definition: cistrans.h:199
Refs::iterator RefIter
Definition: stereo.h:160
bool operator!=(const OBCisTransConfig &other) const
Definition: bindings.h:171
unsigned long begin
Definition: bindings.h:176
Global namespace for all Open Babel code.
Definition: alias.h:22