Chemical Data Processing Library C++ API - Version 1.2.0
Public Types | Public Member Functions | List of all members
CDPL::Pharm::InteractionConstraintConnector Class Reference

InteractionConstraintConnector. More...

#include <InteractionConstraintConnector.hpp>

Public Types

typedef std::function< bool(const Feature &, const Feature &)> ConstraintFunction
 A 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
 

Detailed Description

InteractionConstraintConnector.

Member Typedef Documentation

◆ ConstraintFunction

A generic wrapper class used to store feature interaction constraint test functions.

Constructor & Destructor Documentation

◆ InteractionConstraintConnector()

CDPL::Pharm::InteractionConstraintConnector::InteractionConstraintConnector ( bool  and_expr,
const ConstraintFunction func1,
const ConstraintFunction func2 
)
inline

Constructs a InteractionConstraintConnector that serves as a logical connective for the two specified constraint functions.

Parameters
and_exprtrue for a logical conjuction of the function results, and false for a disjunction.
func1The first interaction constraint function.
func2The second interaction constraint function.

Member Function Documentation

◆ operator()()

bool CDPL::Pharm::InteractionConstraintConnector::operator() ( const Feature ftr1,
const Feature ftr2 
) const

The documentation for this class was generated from the following file: