29 #ifndef CDPL_PHARM_INTERACTIONANALYZER_HPP
30 #define CDPL_PHARM_INTERACTIONANALYZER_HPP
46 class FeatureContainer;
118 typedef std::pair<unsigned int, unsigned int> FeatureTypePair;
119 typedef std::map<FeatureTypePair, ConstraintFunction> ConstraintFunctionMap;
121 ConstraintFunctionMap constraintFuncMap;
Definition of the type CDPL::Pharm::FeatureMapping.
Definition of the preprocessor macro CDPL_PHARM_API.
#define CDPL_PHARM_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
FeatureContainer.
Definition: FeatureContainer.hpp:53
A data type for the storage and lookup of arbitrary feature to feature mappings.
Definition: FeatureMapping.hpp:54
Feature.
Definition: Feature.hpp:48
InteractionAnalyzer.
Definition: InteractionAnalyzer.hpp:53
void analyze(const FeatureContainer &cntnr1, const FeatureContainer &cntnr2, FeatureMapping &iactions, bool append=false) const
Analyzes possible interactions of the features in feature container cntnr1 and with features of cntnr...
InteractionAnalyzer()
Constructs the InteractionAnalyzer instance.
Definition: InteractionAnalyzer.hpp:64
virtual ~InteractionAnalyzer()
Virtual destructor.
Definition: InteractionAnalyzer.hpp:69
void removeConstraintFunction(unsigned int type1, unsigned type2)
Removes the constraint check function that was registered for the specified pair of feature types.
std::function< bool(const Feature &, const Feature &)> ConstraintFunction
A generic wrapper class used to store feature interaction constraint test functions.
Definition: InteractionAnalyzer.hpp:59
const ConstraintFunction & getConstraintFunction(unsigned int type1, unsigned type2) const
Returns the constraint check function that was registered for the specified pair of feature types.
void setConstraintFunction(unsigned int type1, unsigned type2, const ConstraintFunction &func)
Specifies a function that gets used for checking whether all constraints are actually fulfilled for a...
The namespace of the Chemical Data Processing Library.