![]() |
Chemical Data Processing Library C++ API - Version 1.4.0
|
Composite feature-interaction constraint that combines two underlying constraint functions via a logical conjunction or disjunction. More...
#include <InteractionConstraintConnector.hpp>
Public Types | |
| typedef std::function< bool(const Feature &, const Feature &)> | ConstraintFunction |
| Generic wrapper class used to store feature interaction constraint test functions. More... | |
Public Member Functions | |
| InteractionConstraintConnector (bool and_expr, const ConstraintFunction &func1, const ConstraintFunction &func2) | |
Constructs a InteractionConstraintConnector that serves as a logical connective for the two specified constraint functions. More... | |
| bool | operator() (const Feature &ftr1, const Feature &ftr2) const |
| Evaluates the combined constraint between features ftr1 and ftr2. More... | |
Composite feature-interaction constraint that combines two underlying constraint functions via a logical conjunction or disjunction.
| typedef std::function<bool(const Feature&, const Feature&)> CDPL::Pharm::InteractionConstraintConnector::ConstraintFunction |
Generic wrapper class used to store feature interaction constraint test functions.
|
inline |
Constructs a InteractionConstraintConnector that serves as a logical connective for the two specified constraint functions.
| and_expr | true for a logical conjuction of the function results, and false for a disjunction. |
| func1 | The first interaction constraint function. |
| func2 | The second interaction constraint function. |
| bool CDPL::Pharm::InteractionConstraintConnector::operator() | ( | const Feature & | ftr1, |
| const Feature & | ftr2 | ||
| ) | const |
Evaluates the combined constraint between features ftr1 and ftr2.
| ftr1 | The first feature. |
| ftr2 | The second feature. |
true if the combined constraint is satisfied, and false otherwise.