Chemical Data Processing Library Python API - Version 1.1.1
|
Public Member Functions | |
None | __init__ (FragmentLink link) |
Initializes a copy of the FragmentLink instance link. More... | |
None | __init__ (int frag1_idx, int frag2_idx, Bond bond, int rule_id, int atom1_label, int atom2_label) |
Initializes the FragmentLink instance. More... | |
int | getObjectID () |
Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
FragmentLink | assign (FragmentLink link) |
Replaces the current state of self with a copy of the state of the FragmentLink instance link. More... | |
int | getFragment1Index () |
int | getFragment2Index () |
Bond | getBond () |
int | getRuleID () |
int | getAtom1Label () |
int | getAtom2Label () |
Properties | |
objectID = property(getObjectID) | |
fragment1Index = property(getFragment1Index) | |
fragment2Index = property(getFragment2Index) | |
bond = property(getBond) | |
ruleID = property(getRuleID) | |
atom1Label = property(getAtom1Label) | |
atom2Label = property(getAtom2Label) | |
None CDPL.Chem.FragmentGenerator.FragmentLink.__init__ | ( | FragmentLink | link | ) |
Initializes a copy of the FragmentLink instance link.
link | The FragmentLink instance to copy. |
None CDPL.Chem.FragmentGenerator.FragmentLink.__init__ | ( | int | frag1_idx, |
int | frag2_idx, | ||
Bond | bond, | ||
int | rule_id, | ||
int | atom1_label, | ||
int | atom2_label | ||
) |
Initializes the FragmentLink instance.
frag1_idx | |
frag2_idx | |
bond | |
rule_id | |
atom1_label | |
atom2_label |
int CDPL.Chem.FragmentGenerator.FragmentLink.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python FragmentLink 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 FragmentLink 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()
.
FragmentLink CDPL.Chem.FragmentGenerator.FragmentLink.assign | ( | FragmentLink | link | ) |
Replaces the current state of self with a copy of the state of the FragmentLink instance link.
link | The FragmentLink instance to copy. |
int CDPL.Chem.FragmentGenerator.FragmentLink.getFragment1Index | ( | ) |
int CDPL.Chem.FragmentGenerator.FragmentLink.getFragment2Index | ( | ) |
Bond CDPL.Chem.FragmentGenerator.FragmentLink.getBond | ( | ) |
int CDPL.Chem.FragmentGenerator.FragmentLink.getRuleID | ( | ) |
int CDPL.Chem.FragmentGenerator.FragmentLink.getAtom1Label | ( | ) |
int CDPL.Chem.FragmentGenerator.FragmentLink.getAtom2Label | ( | ) |