29 #ifndef CDPL_MOLPROP_ATOMFUNCTIONS_HPP
30 #define CDPL_MOLPROP_ATOMFUNCTIONS_HPP
Definition of constants in namespace CDPL::Chem::AtomPropertyFlag.
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 atom and its bonded neighborhood.
Definition: Atom.hpp:57
Abstract base class for representations of a chemical structure as a graph of bonded atoms.
Definition: MolecularGraph.hpp:57
constexpr unsigned int DEFAULT
Represents the default set of atom properties.
Definition: Chem/AtomPropertyFlag.hpp:53
CDPL_MOLPROP_API std::size_t getElementValenceElectronCount(const Chem::Atom &atom)
Returns the number of valence electrons of the chemical element associated with atom.
CDPL_MOLPROP_API std::size_t getAromaticAtomCount(const Chem::AtomContainer &cntnr)
Returns the number of aromatic atoms in cntnr.
CDPL_MOLPROP_API std::size_t getExplicitChainBondCount(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph)
Returns the number of explicit chain (non-ring) bonds incident to atom in molgraph.
CDPL_MOLPROP_API bool isHeavy(const Chem::Atom &atom)
Tells whether atom is a heavy (non-hydrogen) atom.
CDPL_MOLPROP_API void setPEOESigmaCharge(Chem::Atom &atom, double charge)
Sets the value of the MolProp::AtomProperty::PEOE_SIGMA_CHARGE property of atom to charge.
CDPL_MOLPROP_API std::size_t getHeavyBondCount(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph)
Returns the number of heavy bonds incident to atom in molgraph.
CDPL_MOLPROP_API void clearHBondAcceptorType(Chem::Atom &atom)
Removes the MolProp::AtomProperty::H_BOND_ACCEPTOR_TYPE property from atom.
CDPL_MOLPROP_API double calcInductiveEffect(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph, std::size_t num_bonds=10)
Calculates the inductive effect parameter of atom in molgraph.
CDPL_MOLPROP_API void setHBondAcceptorType(Chem::Atom &atom, unsigned int type)
Sets the value of the MolProp::AtomProperty::H_BOND_ACCEPTOR_TYPE property of atom to type.
CDPL_MOLPROP_API double calcPiElectronegativity(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph)
Calculates the pi electronegativity of atom in molgraph.
CDPL_MOLPROP_API void clearMHMOPiCharge(Chem::Atom &atom)
Removes the MolProp::AtomProperty::MHMO_PI_CHARGE property from atom.
CDPL_MOLPROP_API std::size_t calcStericNumber(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph)
Calculates the steric number of atom in molgraph (used by VSEPR theory).
CDPL_MOLPROP_API std::size_t calcExplicitValence(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph)
Calculates the explicit valence of atom in molgraph (sum of explicit bond orders).
CDPL_MOLPROP_API bool isSemiMetal(const Chem::Atom &atom)
Tells whether the chemical element associated with atom is a semi-metal.
CDPL_MOLPROP_API void setHydrophobicity(Chem::Atom &atom, double hyd)
Sets the value of the MolProp::AtomProperty::HYDROPHOBICITY property of atom to hyd.
CDPL_MOLPROP_API std::size_t getChainAtomCount(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph)
Returns the number of chain (non-ring) neighbors of atom in molgraph (including implicit hydrogens).
CDPL_MOLPROP_API double getAllredRochowElectronegativity(const Chem::Atom &atom)
Returns the Allred-Rochow electronegativity of the chemical element associated with atom.
CDPL_MOLPROP_API std::size_t getHeavyAtomCount(const Chem::AtomContainer &cntnr)
Returns the number of heavy (non-hydrogen) atoms in cntnr.
CDPL_MOLPROP_API std::size_t getExplicitChainAtomCount(const Chem::AtomContainer &cntnr)
Returns the number of explicit chain (non-ring) atoms in cntnr.
CDPL_MOLPROP_API bool isMainGroupElement(const Chem::Atom &atom)
Tells whether the chemical element associated with atom is a main-group element.
CDPL_MOLPROP_API void setPEOESigmaElectronegativity(Chem::Atom &atom, double e_neg)
Sets the value of the MolProp::AtomProperty::PEOE_SIGMA_ELECTRONEGATIVITY property of atom to e_neg.
CDPL_MOLPROP_API bool isOrdinaryHydrogen(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph, unsigned int flags=Chem::AtomPropertyFlag::DEFAULT)
Tells whether atom is an ordinary hydrogen.
CDPL_MOLPROP_API double getCovalentRadius(const Chem::Atom &atom, std::size_t order)
Returns the covalent radius of the chemical element associated with atom for the given bond order.
CDPL_MOLPROP_API bool hasHBondAcceptorType(const Chem::Atom &atom)
Tells whether atom carries an explicit MolProp::AtomProperty::H_BOND_ACCEPTOR_TYPE property.
CDPL_MOLPROP_API void clearHBondDonorType(Chem::Atom &atom)
Removes the MolProp::AtomProperty::H_BOND_DONOR_TYPE property from atom.
CDPL_MOLPROP_API bool hasMHMOPiCharge(const Chem::Atom &atom)
Tells whether atom carries an explicit MolProp::AtomProperty::MHMO_PI_CHARGE property.
CDPL_MOLPROP_API std::size_t getChainBondCount(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph)
Returns the number of chain (non-ring) bonds incident to atom in molgraph (including implicit-hydroge...
CDPL_MOLPROP_API bool isNobleGas(const Chem::Atom &atom)
Tells whether the chemical element associated with atom is a noble gas.
CDPL_MOLPROP_API bool hasPEOESigmaElectronegativity(const Chem::Atom &atom)
Tells whether atom carries an explicit MolProp::AtomProperty::PEOE_SIGMA_ELECTRONEGATIVITY property.
CDPL_MOLPROP_API void clearPEOESigmaElectronegativity(Chem::Atom &atom)
Removes the MolProp::AtomProperty::PEOE_SIGMA_ELECTRONEGATIVITY property from atom.
CDPL_MOLPROP_API bool isUnsaturated(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph)
Tells whether atom is unsaturated (involved in at least one multiple bond) in molgraph.
CDPL_MOLPROP_API unsigned int getVSEPRCoordinationGeometry(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph, std::size_t steric_num)
Returns the VSEPR coordination geometry of atom in molgraph (see namespace MolProp::CoordinationGeome...
CDPL_MOLPROP_API bool isChemicalElement(const Chem::Atom &atom)
Tells whether atom represents a chemical element.
CDPL_MOLPROP_API std::size_t calcValenceElectronCount(const Chem::Atom &atom)
Calculates the number of valence electrons of the chemical element associated with atom (corrected fo...
CDPL_MOLPROP_API std::size_t getOrdinaryHydrogenCount(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph, unsigned int flags=Chem::AtomPropertyFlag::DEFAULT)
Returns the number of ordinary-hydrogen neighbors of atom in molgraph (see isOrdinaryHydrogen() for t...
CDPL_MOLPROP_API bool isCarbonylLike(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph, bool c_only=false, bool db_o_only=false)
Tells whether atom is a carbonyl-like center in molgraph.
CDPL_MOLPROP_API std::size_t getExplicitBondCount(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph)
Returns the number of explicit bonds incident to atom in molgraph.
CDPL_MOLPROP_API std::size_t calcFreeValenceElectronCount(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph)
Calculates the number of free (lone-pair) valence electrons of atom in molgraph.
CDPL_MOLPROP_API bool isBridgehead(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph, bool bridged_only)
Tells whether atom is a bridgehead atom in molgraph.
CDPL_MOLPROP_API double calcEffectivePolarizability(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph, double damping=0.75)
Calculates the effective atomic polarizability of atom in molgraph (after Kang and Jhon).
CDPL_MOLPROP_API void setHBondDonorType(Chem::Atom &atom, unsigned int type)
Sets the value of the MolProp::AtomProperty::H_BOND_DONOR_TYPE property of atom to type.
CDPL_MOLPROP_API bool hasHydrophobicity(const Chem::Atom &atom)
Tells whether atom carries an explicit MolProp::AtomProperty::HYDROPHOBICITY property.
CDPL_MOLPROP_API double calcTotalPartialCharge(const Chem::Atom &atom)
Calculates the total partial charge of atom (sum of stored PEOE sigma and MHMO pi charge contribution...
CDPL_MOLPROP_API bool isAmideCenter(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph, bool c_only=false, bool db_o_only=false)
Tells whether atom is the center of an amide group in molgraph.
CDPL_MOLPROP_API bool isHBondAcceptor(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph)
Tells whether atom acts as an H-bond acceptor in molgraph.
CDPL_MOLPROP_API std::size_t getAromaticBondCount(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph)
Returns the number of aromatic bonds incident to atom in molgraph.
CDPL_MOLPROP_API std::size_t getIUPACGroup(const Chem::Atom &atom)
Returns the IUPAC group number of the chemical element associated with atom.
CDPL_MOLPROP_API std::size_t calcValence(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph)
Calculates the total valence of atom in molgraph (explicit valence plus implicit hydrogens).
CDPL_MOLPROP_API std::size_t getPeriod(const Chem::Atom &atom)
Returns the period of the chemical element associated with atom.
CDPL_MOLPROP_API double getPEOESigmaCharge(const Chem::Atom &atom)
Returns the value of the MolProp::AtomProperty::PEOE_SIGMA_CHARGE property of atom.
CDPL_MOLPROP_API double getVdWRadius(const Chem::Atom &atom)
Returns the Van der Waals radius of the chemical element associated with atom.
CDPL_MOLPROP_API bool isPlanarNitrogen(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph)
Tells whether atom is a planar nitrogen in molgraph.
CDPL_MOLPROP_API bool isInvertibleNitrogen(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph)
Tells whether atom is an invertible (pyramidal, non-aromatic, non-amide) nitrogen in molgraph.
CDPL_MOLPROP_API std::size_t getAtomCount(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph, unsigned int type, bool strict=true)
Returns the number of neighbors of atom in molgraph (including implicit hydrogens) whose Chem::AtomTy...
CDPL_MOLPROP_API void clearHydrophobicity(Chem::Atom &atom)
Removes the MolProp::AtomProperty::HYDROPHOBICITY property from atom.
CDPL_MOLPROP_API unsigned int getHBondAcceptorType(const Chem::Atom &atom)
Returns the value of the MolProp::AtomProperty::H_BOND_ACCEPTOR_TYPE property of atom (see namespace ...
CDPL_MOLPROP_API void setMHMOPiCharge(Chem::Atom &atom, double charge)
Sets the value of the MolProp::AtomProperty::MHMO_PI_CHARGE property of atom to charge.
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 bool isMetal(const Chem::Atom &atom)
Tells whether the chemical element associated with atom is a metal.
CDPL_MOLPROP_API double calcLonePairElectronegativity(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph)
Calculates the lone-pair electronegativity of atom in molgraph.
CDPL_MOLPROP_API std::size_t getBondCount(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph)
Returns the total number of bonds incident to atom in molgraph (including implicit-hydrogen bonds).
CDPL_MOLPROP_API double getHydrophobicity(const Chem::Atom &atom)
Returns the value of the MolProp::AtomProperty::HYDROPHOBICITY property of atom.
CDPL_MOLPROP_API std::size_t getExplicitAtomCount(const Chem::AtomContainer &cntnr)
Returns the total number of explicit atoms in cntnr.
CDPL_MOLPROP_API bool hasPEOESigmaCharge(const Chem::Atom &atom)
Tells whether atom carries an explicit MolProp::AtomProperty::PEOE_SIGMA_CHARGE property.
CDPL_MOLPROP_API std::size_t getRotatableBondCount(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph, bool h_rotors=false, bool ring_bonds=false, bool amide_bonds=false)
Returns the number of rotatable bonds incident to atom in molgraph.
CDPL_MOLPROP_API unsigned int getHBondDonorType(const Chem::Atom &atom)
Returns the value of the MolProp::AtomProperty::H_BOND_DONOR_TYPE property of atom (see namespace Mol...
CDPL_MOLPROP_API bool isNonMetal(const Chem::Atom &atom)
Tells whether the chemical element associated with atom is a non-metal.
CDPL_MOLPROP_API bool isHBondDonor(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph)
Tells whether atom acts as an H-bond donor in molgraph.
CDPL_MOLPROP_API std::size_t getRingAtomCount(const Chem::AtomContainer &cntnr)
Returns the number of ring atoms in cntnr.
CDPL_MOLPROP_API void clearPEOESigmaCharge(Chem::Atom &atom)
Removes the MolProp::AtomProperty::PEOE_SIGMA_CHARGE property from atom.
CDPL_MOLPROP_API bool isSpiroCenter(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph)
Tells whether atom is a spiro center in molgraph.
CDPL_MOLPROP_API bool isAmideNitrogen(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph, bool c_only=false, bool db_o_only=false)
Tells whether atom is the nitrogen of an amide group in molgraph.
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 getAtomicWeight(const Chem::Atom &atom)
Returns the standard atomic weight of the chemical element associated with atom.
CDPL_MOLPROP_API double getMHMOPiCharge(const Chem::Atom &atom)
Returns the value of the MolProp::AtomProperty::MHMO_PI_CHARGE property of atom.
CDPL_MOLPROP_API bool isHalogen(const Chem::Atom &atom)
Tells whether the chemical element associated with atom is a halogen.
CDPL_MOLPROP_API bool hasHBondDonorType(const Chem::Atom &atom)
Tells whether atom carries an explicit MolProp::AtomProperty::H_BOND_DONOR_TYPE property.
CDPL_MOLPROP_API double getPEOESigmaElectronegativity(const Chem::Atom &atom)
Returns the value of the MolProp::AtomProperty::PEOE_SIGMA_ELECTRONEGATIVITY property of atom.
CDPL_MOLPROP_API bool isTransitionMetal(const Chem::Atom &atom)
Tells whether the chemical element associated with atom is a transition metal.
CDPL_MOLPROP_API const std::string & getElementName(const Chem::Atom &atom)
Returns the element name of the chemical element associated with atom.
CDPL_MOLPROP_API double getHybridPolarizability(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph)
Returns the hybridization-state-dependent atomic polarizability of atom in molgraph.
CDPL_MOLPROP_API std::size_t getRingBondCount(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph)
Returns the number of ring bonds incident to atom in molgraph.
The namespace of the Chemical Data Processing Library.