24 #ifndef OB_SQUAREPLANAR_H 25 #define OB_SQUAREPLANAR_H 89 refs(_refs), shape(_shape), specified(true)
163 return !(*
this == other);
198 bool IsValid()
const;
204 void SetConfig(
const Config &config);
213 Config GetConfig(
unsigned long start,
230 return !(*
this == other);
244 bool IsTrans(
unsigned long id1,
unsigned long id2)
const;
248 bool IsCis(
unsigned long id1,
unsigned long id2)
const;
253 unsigned long GetTransRef(
unsigned long id)
const;
257 std::vector<unsigned long> GetCisRefs(
unsigned long id)
const;
263 unsigned long GetCisOrTransRef(
unsigned long id,
bool getcisref)
const;
bool specified
Definition: squareplanar.h:173
Stereochemical configuration for square planar stereocenters.
Definition: squareplanar.h:71
Base class for generic data.
Definition: base.h:188
OBStereo::Shape shape
The shape of the 4 reference ids.
Definition: squareplanar.h:172
OBStereo::Type GetType() const
Definition: squareplanar.h:193
Placeholder for enums & Ref/Refs related functions.
Definition: stereo.h:75
Molecule Class.
Definition: mol.h:118
Base class for handling and storing planar stereochemistry with 4 reference atoms.
Definition: tetraplanar.h:83
Shape
Definition: stereo.h:108
bool operator!=(const Config &other) const
Definition: squareplanar.h:161
Config(unsigned long _center, const OBStereo::Refs &_refs, OBStereo::Shape _shape=OBStereo::ShapeU)
Definition: squareplanar.h:87
unsigned long center
Definition: squareplanar.h:170
OBStereo::Refs refs
The 4 reference ids.
Definition: squareplanar.h:171
std::ostream & operator<<(std::ostream &, const vector3 &)
Prints a representation of the vector as a row vector of the form "<0.1,1,2>".
Definition: vector3.cpp:109
std::vector< Ref > Refs
Definition: stereo.h:156
Class for handling and storing square planar stereochemistry.
Definition: squareplanar.h:48
bool operator!=(const OBSquarePlanarStereo &other) const
Definition: squareplanar.h:228
Square-planar stereochemistry.
Definition: stereo.h:83
Config()
Definition: squareplanar.h:77
Type
Definition: stereo.h:80
Base Class.
Definition: base.h:239
Base class for handling and storing planar stereochemistry with 4 reference atoms.
bool operator==(const OBBitVec &bv1, const OBBitVec &bv2)
Definition: bitvec.cpp:525
Global namespace for all Open Babel code.
Definition: alias.h:22