Chemical Data Processing Library Python API - Version 1.1.1
|
Public Member Functions | |
None | __init__ (FragmentationRule rule) |
Initializes a copy of the FragmentationRule instance rule. More... | |
None | __init__ (MolecularGraph match_ptn, int id) |
Initializes the FragmentationRule instance. More... | |
int | getObjectID () |
Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
FragmentationRule | assign (FragmentationRule rule) |
Replaces the current state of self with a copy of the state of the FragmentationRule instance rule. More... | |
MolecularGraph | getMatchPattern () |
None | setMatchPattern (MolecularGraph ptn) |
int | getID () |
None | setID (int id) |
Properties | |
objectID = property(getObjectID) | |
matchPattern = property(getMatchPattern, setMatchPattern) | |
id = property(getID, setID) | |
None CDPL.Chem.FragmentGenerator.FragmentationRule.__init__ | ( | FragmentationRule | rule | ) |
Initializes a copy of the FragmentationRule instance rule.
rule | The FragmentationRule instance to copy. |
None CDPL.Chem.FragmentGenerator.FragmentationRule.__init__ | ( | MolecularGraph | match_ptn, |
int | id | ||
) |
Initializes the FragmentationRule instance.
match_ptn | |
id |
int CDPL.Chem.FragmentGenerator.FragmentationRule.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python FragmentationRule 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 FragmentationRule 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()
.
FragmentationRule CDPL.Chem.FragmentGenerator.FragmentationRule.assign | ( | FragmentationRule | rule | ) |
Replaces the current state of self with a copy of the state of the FragmentationRule instance rule.
rule | The FragmentationRule instance to copy. |
MolecularGraph CDPL.Chem.FragmentGenerator.FragmentationRule.getMatchPattern | ( | ) |
None CDPL.Chem.FragmentGenerator.FragmentationRule.setMatchPattern | ( | MolecularGraph | ptn | ) |
ptn |
int CDPL.Chem.FragmentGenerator.FragmentationRule.getID | ( | ) |
None CDPL.Chem.FragmentGenerator.FragmentationRule.setID | ( | int | id | ) |
id |