Default Chem::MultiConfMoleculeInputProcessor implementation that detects multi-conformer input by comparing atom and bond properties (and optionally molecule names) between successive input molecules.
More...
#include <DefaultMultiConfMoleculeInputProcessor.hpp>
|
| static constexpr unsigned int | DEF_ATOM_PROPERTY_FLAGS |
| | Specifies the default set of atom properties considered when checking conformer compatibility. More...
|
| |
| static constexpr unsigned int | DEF_BOND_PROPERTY_FLAGS |
| | Specifies the default set of bond properties considered when checking conformer compatibility. More...
|
| |
Default Chem::MultiConfMoleculeInputProcessor implementation that detects multi-conformer input by comparing atom and bond properties (and optionally molecule names) between successive input molecules.
◆ SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated DefaultMultiConfMoleculeInputProcessor instances.
◆ DefaultMultiConfMoleculeInputProcessor()
Constructs the processor with the given property-comparison configuration.
- Parameters
-
| comp_names | If true, the molecule name property must agree between successive conformers. |
| atom_flags | The bitwise-OR combination of Chem::AtomPropertyFlag values that must agree atom-wise. |
| bond_flags | The bitwise-OR combination of Chem::BondPropertyFlag values that must agree bond-wise. |
◆ init()
| bool CDPL::Chem::DefaultMultiConfMoleculeInputProcessor::init |
( |
MolecularGraph & |
tgt_molgraph | ) |
const |
|
virtual |
Initializes the processor state for tgt_molgraph as the new conformer-collection target.
- Parameters
-
| tgt_molgraph | The molecular graph that will accumulate conformers. |
- Returns
true if the target was successfully initialized, and false otherwise.
Implements CDPL::Chem::MultiConfMoleculeInputProcessor.
◆ isConformation()
Tells whether conf_molgraph is a conformer of the already-accumulated tgt_molgraph.
- Parameters
-
| tgt_molgraph | The current conformer-collection target. |
| conf_molgraph | The candidate conformer molecular graph. |
- Returns
true if conf_molgraph matches tgt_molgraph under the configured comparison flags, and false otherwise.
Implements CDPL::Chem::MultiConfMoleculeInputProcessor.
◆ addConformation()
Adds the atom-coordinate set of conf_molgraph as a new conformer to tgt_molgraph.
- Parameters
-
| tgt_molgraph | The conformer-collection target. |
| conf_molgraph | The conformer to add. |
- Returns
true if the conformer was added, and false if the addition failed (e.g. coordinate mismatch).
Implements CDPL::Chem::MultiConfMoleculeInputProcessor.
◆ DEF_ATOM_PROPERTY_FLAGS
| constexpr unsigned int CDPL::Chem::DefaultMultiConfMoleculeInputProcessor::DEF_ATOM_PROPERTY_FLAGS |
|
staticconstexpr |
Initial value:=
constexpr unsigned int FORMAL_CHARGE
Specifies the formal charge of an atom.
Definition: Chem/AtomPropertyFlag.hpp:73
constexpr unsigned int ISOTOPE
Specifies the isotopic mass of an atom.
Definition: Chem/AtomPropertyFlag.hpp:68
constexpr unsigned int TYPE
Specifies the generic type or element of an atom.
Definition: Chem/AtomPropertyFlag.hpp:63
Specifies the default set of atom properties considered when checking conformer compatibility.
◆ DEF_BOND_PROPERTY_FLAGS
| constexpr unsigned int CDPL::Chem::DefaultMultiConfMoleculeInputProcessor::DEF_BOND_PROPERTY_FLAGS |
|
staticconstexpr |
Initial value:=
constexpr unsigned int ORDER
Specifies the order of a bond.
Definition: BondPropertyFlag.hpp:63
Specifies the default set of bond properties considered when checking conformer compatibility.
The documentation for this class was generated from the following file: