SubstructureHistogramCalculator.
More...
◆ __init__()
Initializes a copy of the SubstructureHistogramCalculator instance calc.
- Parameters
-
| calc | The SubstructureHistogramCalculator instance to copy. |
◆ getObjectID()
| int CDPL.Chem.SubstructureHistogramCalculator.getObjectID |
( |
| ) |
|
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python SubstructureHistogramCalculator 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 SubstructureHistogramCalculator 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.
◆ addPattern() [1/2]
| None CDPL.Chem.SubstructureHistogramCalculator.addPattern |
( |
MolecularGraph |
structure, |
|
|
int |
id = 0, |
|
|
int |
priority = 0, |
|
|
bool |
all_matches = True, |
|
|
bool |
unique_matches = True |
|
) |
| |
- Parameters
-
| structure | |
| id | |
| priority | |
| all_matches | |
| unique_matches | |
◆ addPattern() [2/2]
| None CDPL.Chem.SubstructureHistogramCalculator.addPattern |
( |
Pattern |
ptn | ) |
|
◆ getPattern()
| Pattern CDPL.Chem.SubstructureHistogramCalculator.getPattern |
( |
int |
idx | ) |
|
◆ removePattern()
| None CDPL.Chem.SubstructureHistogramCalculator.removePattern |
( |
int |
idx | ) |
|
◆ getNumPatterns()
| int CDPL.Chem.SubstructureHistogramCalculator.getNumPatterns |
( |
| ) |
|
◆ calculate()
| None CDPL.Chem.SubstructureHistogramCalculator.calculate |
( |
MolecularGraph |
molgraph, |
|
|
object |
histo |
|
) |
| |
◆ assign()
Replaces the current state of self with a copy of the state of the SubstructureHistogramCalculator instance calc.
- Parameters
-
| calc | The SubstructureHistogramCalculator instance to copy. |
- Returns
- self