29 #ifndef CDPL_MOLPROP_BONDFUNCTIONS_HPP
30 #define CDPL_MOLPROP_BONDFUNCTIONS_HPP
Definition of the preprocessor macro CDPL_MOLPROP_API.
#define CDPL_MOLPROP_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Abstract base class representing a chemical bond between two Chem::Atom instances.
Definition: Bond.hpp:54
Abstract base class for representations of a chemical structure as a graph of bonded atoms.
Definition: MolecularGraph.hpp:57
CDPL_MOLPROP_API bool hasMHMOPiOrder(const Chem::Bond &atom)
Tells whether bond carries an explicit MolProp::BondProperty::MHMO_PI_ORDER property.
CDPL_MOLPROP_API bool isHydrogenRotor(const Chem::Bond &bond, const Chem::MolecularGraph &molgraph)
Tells whether bond is a rotatable bond whose rotation only moves hydrogen atoms.
CDPL_MOLPROP_API void setMHMOPiOrder(Chem::Bond &bond, double order)
Sets the value of the MolProp::BondProperty::MHMO_PI_ORDER property of bond.
CDPL_MOLPROP_API bool isAmideBond(const Chem::Bond &bond, const Chem::MolecularGraph &molgraph, bool c_only=false, bool db_o_only=false)
Tells whether bond is an amide bond in molgraph.
CDPL_MOLPROP_API double getMHMOPiOrder(const Chem::Bond &bond)
Returns the value of the MolProp::BondProperty::MHMO_PI_ORDER property of bond.
CDPL_MOLPROP_API bool isHydrogenBond(const Chem::Bond &bond)
Tells whether bond is a hydrogen bond (one of the bonded atoms is a hydrogen).
CDPL_MOLPROP_API bool isHeteroAtomHydrogenRotor(const Chem::Bond &bond, const Chem::MolecularGraph &molgraph)
Tells whether bond is a hydrogen-only rotor where the rotating end is a heteroatom-bound hydrogen.
CDPL_MOLPROP_API bool isRotatable(const Chem::Bond &bond, const Chem::MolecularGraph &molgraph, bool h_rotors=false, bool ring_bonds=false, bool amide_bonds=false)
Tells whether bond is rotatable.
CDPL_MOLPROP_API bool isInRingOfSize(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph, std::size_t size)
Tells whether atom is a member of a ring of size size in molgraph.
CDPL_MOLPROP_API void clearMHMOPiOrder(Chem::Bond &bond)
Removes the MolProp::BondProperty::MHMO_PI_ORDER property from bond.
CDPL_MOLPROP_API bool isInRing(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph)
Tells whether atom is a member of any ring in molgraph.
CDPL_MOLPROP_API std::size_t getNumContainingSSSRRings(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph)
Returns the number of SSSR rings of molgraph that contain atom.
CDPL_MOLPROP_API double calcPolarizability(const Chem::Bond &bond, const Chem::MolecularGraph &molgraph, double damping=0.75)
Calculates the bond polarizability of bond within molgraph.
The namespace of the Chemical Data Processing Library.