Default Chem::MultiConfMoleculeInputProcessor implementation that detects multi-conformer input by comparing atom and bond properties (and optionally molecule names) between successively read 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 successively read molecules.
◆ SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated DefaultMultiConfMoleculeInputProcessor instances.
◆ DefaultMultiConfMoleculeInputProcessor()
Constructs the processor with the given atom/bond 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 |
Performs initial tests and setup tasks for tgt_molgraph as the new conformer collection target.
- Parameters
-
| tgt_molgraph | The molecular graph that will store the read conformers. |
- Returns
true if tgt_molgraph fulfills all prerequisites and was successfully initialized, and false otherwise.
Implements CDPL::Chem::MultiConfMoleculeInputProcessor.
◆ isConformation()
Tells whether conf_molgraph is a conformer of the conformer collection target tgt_molgraph.
- Parameters
-
| tgt_molgraph | The conformer collection target. |
| conf_molgraph | The molecular graph representing the conformer to check. |
- Returns
true if conf_molgraph could be identified as a conformer of tgt_molgraph, and false otherwise.
Implements CDPL::Chem::MultiConfMoleculeInputProcessor.
◆ addConformation()
Adds the set of atom 3D coordinates of conf_molgraph as a new conformer to tgt_molgraph.
- Parameters
-
| tgt_molgraph | The conformer collection target. |
| conf_molgraph | The molecular graph representing the conformer to add. |
- Returns
true if the conformer was added, and false if the addition failed.
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: