![]() |
Chemical Data Processing Library C++ API - Version 1.4.0
|
Perceives topological-symmetry classes of the atoms in a molecular graph. More...
#include <SymmetryClassCalculator.hpp>
Public Member Functions | |
| SymmetryClassCalculator () | |
Constructs the SymmetryClassCalculator instance. More... | |
| SymmetryClassCalculator (const MolecularGraph &molgraph, Util::STArray &class_ids) | |
Constructs the SymmetryClassCalculator instance and perceives the topological symmetry classes of the atoms in the molecular graph molgraph. More... | |
| SymmetryClassCalculator (const SymmetryClassCalculator &)=delete | |
| SymmetryClassCalculator & | operator= (const SymmetryClassCalculator &)=delete |
| void | setAtomPropertyFlags (unsigned int flags) |
| Allows to specify the set of atomic properties that has to be considered in the perception of topological symmetry classes. More... | |
| unsigned int | getAtomPropertyFlags () const |
| Returns the set of atomic properties that gets considered in the perception of topological symmetry classes. More... | |
| void | setBondPropertyFlags (unsigned int flags) |
| Allows to specify the set of bond properties that has to be considered in the perception of topological symmetry classes. More... | |
| unsigned int | getBondPropertyFlags () const |
| Returns the set of bond properties that gets considered in the perception of topological symmetry classes. More... | |
| void | includeImplicitHydrogens (bool include) |
| Allows to specify whether implicit hydrogen atoms shall be ignored or treated in the same way as explicit ones. More... | |
| bool | implicitHydrogensIncluded () const |
| Tells whether implicit hydrogen atoms are ignored or treated in the same way as explicit ones. More... | |
| void | calculate (const MolecularGraph &molgraph, Util::STArray &class_ids) |
| Perceives the topological symmetry classes of the atoms in the molecular graph molgraph. More... | |
Static Public Attributes | |
| static constexpr unsigned int | DEF_ATOM_PROPERTY_FLAGS |
| Specifies the default set of atomic properties considered in the perception of topological symmetry classes. More... | |
| static constexpr unsigned int | DEF_BOND_PROPERTY_FLAGS |
| Specifies the default set of bond properties considered in the perception of topological symmetry classes. More... | |
Perceives topological-symmetry classes of the atoms in a molecular graph.
Two atoms are placed in the same class when the topology and configurable atom/bond properties (see DEF_ATOM_PROPERTY_FLAGS and DEF_BOND_PROPERTY_FLAGS) of their respective graph neighbourhoods are indistinguishable. The class identifiers are returned as a Util::STArray indexed by the atom index in the molecular graph. Treatment of implicit hydrogens can be configured via includeImplicitHydrogens().
| CDPL::Chem::SymmetryClassCalculator::SymmetryClassCalculator | ( | ) |
Constructs the SymmetryClassCalculator instance.
| CDPL::Chem::SymmetryClassCalculator::SymmetryClassCalculator | ( | const MolecularGraph & | molgraph, |
| Util::STArray & | class_ids | ||
| ) |
Constructs the SymmetryClassCalculator instance and perceives the topological symmetry classes of the atoms in the molecular graph molgraph.
| molgraph | The molecular graph for which to perceive the symmetry classes. |
| class_ids | An array containing the perceived symmetry class IDs. The class IDs are stored in the same order as the atoms appear in the atom list of the molecular graph (i.e. the symmetry class of an atom is accessible via its index). |
|
delete |
|
delete |
| void CDPL::Chem::SymmetryClassCalculator::setAtomPropertyFlags | ( | unsigned int | flags | ) |
Allows to specify the set of atomic properties that has to be considered in the perception of topological symmetry classes.
The flags argument is an OR combination of the constants defined in namespace Chem::AtomPropertyFlag. Supported property flags are:
| flags | The set of atomic properties to consider. |
| unsigned int CDPL::Chem::SymmetryClassCalculator::getAtomPropertyFlags | ( | ) | const |
Returns the set of atomic properties that gets considered in the perception of topological symmetry classes.
| void CDPL::Chem::SymmetryClassCalculator::setBondPropertyFlags | ( | unsigned int | flags | ) |
Allows to specify the set of bond properties that has to be considered in the perception of topological symmetry classes.
The flags argument is an OR combination of the constants defined in namespace Chem::BondPropertyFlag. Supported property flags are:
| flags | The set of bond properties to consider. |
| unsigned int CDPL::Chem::SymmetryClassCalculator::getBondPropertyFlags | ( | ) | const |
Returns the set of bond properties that gets considered in the perception of topological symmetry classes.
| void CDPL::Chem::SymmetryClassCalculator::includeImplicitHydrogens | ( | bool | include | ) |
Allows to specify whether implicit hydrogen atoms shall be ignored or treated in the same way as explicit ones.
| include | If true, implicit hydrogen atoms are treated as if they were explicit and are ignored otherwise. |
| bool CDPL::Chem::SymmetryClassCalculator::implicitHydrogensIncluded | ( | ) | const |
Tells whether implicit hydrogen atoms are ignored or treated in the same way as explicit ones.
true if implicit hydrogen atoms are treated in the same way as explicit ones, and false if they are ignored. | void CDPL::Chem::SymmetryClassCalculator::calculate | ( | const MolecularGraph & | molgraph, |
| Util::STArray & | class_ids | ||
| ) |
Perceives the topological symmetry classes of the atoms in the molecular graph molgraph.
| molgraph | The molecular graph for which to perceive the symmetry classes. |
| class_ids | An array containing the perceived symmetry class IDs. The class IDs are stored in the same order as the atoms appear in the atom list of the molecular graph (i.e. the symmetry class of an atom is accessible via its index). |
|
staticconstexpr |
Specifies the default set of atomic properties considered in the perception of topological symmetry classes.
|
staticconstexpr |
Specifies the default set of bond properties considered in the perception of topological symmetry classes.