29 #ifndef CDPL_MOLPROP_ATOMCONTAINERFUNCTIONS_HPP
30 #define CDPL_MOLPROP_ATOMCONTAINERFUNCTIONS_HPP
Type declaration of a generic wrapper class for storing user-defined Chem::Atom 3D-coordinates functi...
Definition of the type CDPL::MolProp::ElementHistogram.
Definition of the type CDPL::MolProp::MassComposition.
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.
Common interface for data structures that support a random access to stored Chem::Atom instances.
Definition: AtomContainer.hpp:55
Data type for the storage of element histograms of chemical compounds.
Definition: ElementHistogram.hpp:50
Data type for the storage of mass percent compositions of chemical compounds.
Definition: MassComposition.hpp:51
std::function< const Math::Vector3D &(const Chem::Atom &)> Atom3DCoordinatesFunction
Generic wrapper class used to store a user-defined Chem::Atom 3D-coordinates function.
Definition: Atom3DCoordinatesFunction.hpp:43
CVector< double, 3 > Vector3D
Bounded 3 element vector holding floating point values of type double.
Definition: Vector.hpp:2937
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 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 void generateExplicitMolecularFormula(const Chem::AtomContainer &cntnr, std::string &formula)
Generates the molecular formula of the explicit atoms in cntnr.
CDPL_MOLPROP_API void generateExplicitElementHistogram(const Chem::AtomContainer &cntnr, ElementHistogram &hist, bool append=false)
Generates the element histogram of the explicit atoms in cntnr.
CDPL_MOLPROP_API bool calcDipoleMoment(const Chem::AtomContainer &cntnr, const Chem::Atom3DCoordinatesFunction &coords_func, Math::Vector3D &moment)
Calculates the dipole moment of cntnr using the supplied atom 3D-coordinates function.
CDPL_MOLPROP_API long getNetFormalCharge(const Chem::AtomContainer &cntnr)
Returns the net formal charge of cntnr (sum of per-atom formal charges).
CDPL_MOLPROP_API void calcExplicitMassComposition(const Chem::AtomContainer &cntnr, MassComposition &mass_comp)
Calculates the per-element mass composition of the explicit atoms in cntnr.
CDPL_MOLPROP_API std::size_t getExplicitAtomCount(const Chem::AtomContainer &cntnr)
Returns the total number of explicit atoms in cntnr.
CDPL_MOLPROP_API std::size_t getRingAtomCount(const Chem::AtomContainer &cntnr)
Returns the number of ring atoms in cntnr.
CDPL_MOLPROP_API double calcExplicitMass(const Chem::AtomContainer &cntnr)
Calculates the total mass of the explicit atoms in cntnr.
CDPL_MOLPROP_API void generateExplicitMassCompositionString(const Chem::AtomContainer &cntnr, std::string &comp_str)
Generates a string representation of the per-element mass composition of the explicit atoms in cntnr.
The namespace of the Chemical Data Processing Library.