![]() |
Chemical Data Processing Library C++ API - Version 1.4.0
|
Adjusts the protonation state of a molecule (atom formal charges and bonded hydrogen counts) according to one of several pre-defined objectives. More...
#include <ProtonationStateStandardizer.hpp>
Public Types | |
| enum | Flavor { MIN_CHARGED_ATOM_COUNT , PHYSIOLOGICAL_CONDITION_STATE , MAX_CHARGE_COMPENSATION } |
| Selects the objective driving the protonation-state adjustment. More... | |
| typedef std::shared_ptr< ProtonationStateStandardizer > | SharedPointer |
A reference-counted smart pointer [SHPTR] for dynamically allocated ProtonationStateStandardizer instances. More... | |
Public Member Functions | |
| ProtonationStateStandardizer () | |
Constructs the ProtonationStateStandardizer instance. More... | |
| ProtonationStateStandardizer (const ProtonationStateStandardizer &standardizer) | |
Constructs a copy of the ProtonationStateStandardizer instance standardizer. More... | |
| bool | standardize (Molecule &mol, Flavor flavor) |
| Adjusts the protonation state of mol in place according to the selected flavor. More... | |
| bool | standardize (const Molecule &mol, Molecule &std_mol, Flavor flavor) |
| Writes a standardized copy of mol to std_mol without modifying mol. More... | |
| ProtonationStateStandardizer & | operator= (const ProtonationStateStandardizer &standardizer) |
| Replaces the state of this standardizer by a copy of the state of standardizer. More... | |
Friends | |
| class | ChEMBLStandardizer |
Adjusts the protonation state of a molecule (atom formal charges and bonded hydrogen counts) according to one of several pre-defined objectives.
| typedef std::shared_ptr<ProtonationStateStandardizer> CDPL::Chem::ProtonationStateStandardizer::SharedPointer |
A reference-counted smart pointer [SHPTR] for dynamically allocated ProtonationStateStandardizer instances.
Selects the objective driving the protonation-state adjustment.
| CDPL::Chem::ProtonationStateStandardizer::ProtonationStateStandardizer | ( | ) |
Constructs the ProtonationStateStandardizer instance.
| CDPL::Chem::ProtonationStateStandardizer::ProtonationStateStandardizer | ( | const ProtonationStateStandardizer & | standardizer | ) |
Constructs a copy of the ProtonationStateStandardizer instance standardizer.
| standardizer | The ProtonationStateStandardizer to copy. |
Adjusts the protonation state of mol in place according to the selected flavor.
| mol | The molecule to standardize (modified in place). |
| flavor | The protonation-state objective. |
true if the molecule was modified, and false otherwise. | bool CDPL::Chem::ProtonationStateStandardizer::standardize | ( | const Molecule & | mol, |
| Molecule & | std_mol, | ||
| Flavor | flavor | ||
| ) |
Writes a standardized copy of mol to std_mol without modifying mol.
| mol | The input molecule. |
| std_mol | The output molecule receiving the standardized copy. |
| flavor | The protonation-state objective. |
true if the output differs from the input, and false otherwise. | ProtonationStateStandardizer& CDPL::Chem::ProtonationStateStandardizer::operator= | ( | const ProtonationStateStandardizer & | standardizer | ) |
Replaces the state of this standardizer by a copy of the state of standardizer.
| standardizer | The source ProtonationStateStandardizer. |
|
friend |