SubstructureEditor.
More...
◆ __init__()
◆ getObjectID()
int CDPL.Chem.SubstructureEditor.getObjectID |
( |
| ) |
|
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python SubstructureEditor
instances may reference the same underlying C++ class instance. The commonly used Python expression a is not b
thus cannot tell reliably whether the two SubstructureEditor
instances a and b reference different C++ objects. The numeric identifier returned by this method allows to correctly implement such an identity test via the simple expression a.getObjectID() != b.getObjectID()
.
- Returns
- The numeric ID of the internally referenced C++ class instance.
◆ assign()
Replaces the current state of self with a copy of the state of the SubstructureEditor
instance editor.
- Parameters
-
editor | The SubstructureEditor instance to copy. |
- Returns
- self
◆ addSearchPattern()
None CDPL.Chem.SubstructureEditor.addSearchPattern |
( |
MolecularGraph |
molgraph | ) |
|
Appends a new substructure search pattern to the current set of patterns.
- Parameters
-
molgraph | The molecular graph of the substructure search pattern to add. |
◆ getNumSearchPatterns()
int CDPL.Chem.SubstructureEditor.getNumSearchPatterns |
( |
| ) |
|
◆ getSearchPattern()
MolecularGraph CDPL.Chem.SubstructureEditor.getSearchPattern |
( |
int |
idx | ) |
|
◆ removeSearchPattern()
None CDPL.Chem.SubstructureEditor.removeSearchPattern |
( |
int |
idx | ) |
|
◆ addExcludePattern()
None CDPL.Chem.SubstructureEditor.addExcludePattern |
( |
MolecularGraph |
molgraph | ) |
|
Appends a new substructure exclude pattern to the current set of patterns.
- Parameters
-
molgraph | The molecular graph of the substructure exclude pattern to add. |
◆ getNumExcludePatterns()
int CDPL.Chem.SubstructureEditor.getNumExcludePatterns |
( |
| ) |
|
◆ getExcludePattern()
MolecularGraph CDPL.Chem.SubstructureEditor.getExcludePattern |
( |
int |
idx | ) |
|
◆ removeExcludePattern()
None CDPL.Chem.SubstructureEditor.removeExcludePattern |
( |
int |
idx | ) |
|
◆ setResultPattern()
None CDPL.Chem.SubstructureEditor.setResultPattern |
( |
MolecularGraph |
molgraph | ) |
|
◆ getResultPattern()
◆ edit() [1/2]
int CDPL.Chem.SubstructureEditor.edit |
( |
Molecule |
mol | ) |
|
◆ edit() [2/2]