![]() |
Chemical Data Processing Library C++ API - Version 1.4.0
|
Abstract base class for all tautomerization rule implementations used by the Chem::TautomerGenerator. More...
#include <TautomerizationRule.hpp>
Inheritance diagram for CDPL::Chem::TautomerizationRule:Public Types | |
| typedef std::shared_ptr< TautomerizationRule > | SharedPointer |
A reference-counted smart pointer [SHPTR] for dynamically allocated TautomerizationRule instances. More... | |
Public Member Functions | |
| virtual | ~TautomerizationRule () |
| Virtual destructor. More... | |
| virtual bool | setup (MolecularGraph &parent_molgraph)=0 |
| Sets the parent molecular graph for which the rule is to enumerate tautomers. More... | |
| virtual unsigned int | getID () const =0 |
| Returns the rule's identifier (see Chem::TautomerizationType). More... | |
| virtual bool | generate (Molecule &tautomer)=0 |
| Generates the next tautomer. More... | |
| virtual SharedPointer | clone () const =0 |
| Returns a deep copy of this rule instance. More... | |
Abstract base class for all tautomerization rule implementations used by the Chem::TautomerGenerator.
| typedef std::shared_ptr<TautomerizationRule> CDPL::Chem::TautomerizationRule::SharedPointer |
A reference-counted smart pointer [SHPTR] for dynamically allocated TautomerizationRule instances.
|
inlinevirtual |
Virtual destructor.
|
pure virtual |
Sets the parent molecular graph for which the rule is to enumerate tautomers.
| parent_molgraph | The molecular graph to be tautomerized. |
true if the rule applies to parent_molgraph and the iteration has been initialized, and false otherwise. Implemented in CDPL::Chem::PatternBasedTautomerizationRule, and CDPL::Chem::ConjugatedRingBondPatternSwitching.
|
pure virtual |
Returns the rule's identifier (see Chem::TautomerizationType).
Implemented in CDPL::Chem::PatternBasedTautomerizationRule, and CDPL::Chem::ConjugatedRingBondPatternSwitching.
Generates the next tautomer.
| tautomer | The tautomer output molecule object. |
true if a tautomer was generated, false if no more tautomers are available. Implemented in CDPL::Chem::PatternBasedTautomerizationRule, and CDPL::Chem::ConjugatedRingBondPatternSwitching.
|
pure virtual |
Returns a deep copy of this rule instance.
Implemented in CDPL::Chem::PatternBasedTautomerizationRule, and CDPL::Chem::ConjugatedRingBondPatternSwitching.