![]() |
Chemical Data Processing Library Python API - Version 1.4.0
|
Match functor that tests whether two feature pairs share a compatible inter-feature distance, with the compatibility relation switched between query-mode (asymmetric) and non-query-mode (symmetric). More...
Inheritance diagram for CDPL.Pharm.FeaturePairDistanceMatchFunctor:Public Member Functions | |
| None | __init__ (FeaturePairDistanceMatchFunctor func) |
Initializes a copy of the FeaturePairDistanceMatchFunctor instance func. More... | |
| None | __init__ (bool query_mode) |
Constructs the FeaturePairDistanceMatchFunctor instance. More... | |
| int | getObjectID () |
| Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
| bool | queryMode () |
| Tells whether the functor operates in query mode. More... | |
| FeaturePairDistanceMatchFunctor | assign (FeaturePairDistanceMatchFunctor func) |
Replaces the current state of self with a copy of the state of the FeaturePairDistanceMatchFunctor instance func. More... | |
| bool | __call__ (Feature p1_ftr1, Feature p1_ftr2, Feature p2_ftr1, Feature p2_ftr2) |
| Checks if the feature pairs (p1_ftr1, p1_ftr2) and (p2_ftr1, p2_ftr2) are matching in terms of their feature distance. More... | |
Properties | |
| objectID = property(getObjectID) | |
| qryMode = property(queryMode) | |
Match functor that tests whether two feature pairs share a compatible inter-feature distance, with the compatibility relation switched between query-mode (asymmetric) and non-query-mode (symmetric).
| None CDPL.Pharm.FeaturePairDistanceMatchFunctor.__init__ | ( | FeaturePairDistanceMatchFunctor | func | ) |
Initializes a copy of the FeaturePairDistanceMatchFunctor instance func.
| func | The FeaturePairDistanceMatchFunctor instance to copy. |
| None CDPL.Pharm.FeaturePairDistanceMatchFunctor.__init__ | ( | bool | query_mode | ) |
Constructs the FeaturePairDistanceMatchFunctor instance.
| query_mode | If True, the second pair feature distance must fall in the distance +/- tolerances of the first pair for the compatibility check to succeed. If False, it is sufficient that any one of the pairs matches the distance range of the other. |
| int CDPL.Pharm.FeaturePairDistanceMatchFunctor.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python FeaturePairDistanceMatchFunctor 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 FeaturePairDistanceMatchFunctor 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().
| bool CDPL.Pharm.FeaturePairDistanceMatchFunctor.queryMode | ( | ) |
Tells whether the functor operates in query mode.
True if query mode is active, and False otherwise. | FeaturePairDistanceMatchFunctor CDPL.Pharm.FeaturePairDistanceMatchFunctor.assign | ( | FeaturePairDistanceMatchFunctor | func | ) |
Replaces the current state of self with a copy of the state of the FeaturePairDistanceMatchFunctor instance func.
| func | The FeaturePairDistanceMatchFunctor instance to copy. |
| bool CDPL.Pharm.FeaturePairDistanceMatchFunctor.__call__ | ( | Feature | p1_ftr1, |
| Feature | p1_ftr2, | ||
| Feature | p2_ftr1, | ||
| Feature | p2_ftr2 | ||
| ) |
Checks if the feature pairs (p1_ftr1, p1_ftr2) and (p2_ftr1, p2_ftr2) are matching in terms of their feature distance.
| p1_ftr1 | The first feature of the first pair. |
| p1_ftr2 | The second feature of the first pair. |
| p2_ftr1 | The first feature of the second pair. |
| p2_ftr2 | The second feature of the second pair. |
True if the feature pair distance are compatible, and False otherwise.