29 #ifndef CDPL_CHEM_NOTMATCHEXPRESSION_HPP
30 #define CDPL_CHEM_NOTMATCHEXPRESSION_HPP
52 template <
typename ObjType1,
typename ObjType2 =
void>
67 expression(expr_ptr) {}
79 bool operator()(
const ObjType1& query_obj1,
const ObjType2& query_obj2,
const ObjType1& target_obj1,
const ObjType2& target_obj2,
94 bool operator()(
const ObjType1& query_obj1,
const ObjType2& query_obj2,
const ObjType1& target_obj1,
const ObjType2& target_obj2,
116 template <
typename ObjType>
131 expression(expr_ptr) {}
141 bool operator()(
const ObjType& query_obj,
const ObjType& target_obj,
const Base::Any& aux_data)
const;
172 template <
typename ObjType1,
typename ObjType2>
174 const ObjType1& target_obj1,
const ObjType2& target_obj2,
177 return !this->expression->operator()(query_obj1, query_obj2, target_obj1, target_obj2, data);
180 template <
typename ObjType1,
typename ObjType2>
182 const ObjType1& target_obj1,
const ObjType2& target_obj2,
185 return !this->expression->operator()(query_obj1, query_obj2, target_obj1, target_obj2, mapping, data);
188 template <
typename ObjType1,
typename ObjType2>
191 return this->expression->requiresAtomBondMapping();
195 template <
typename ObjType>
199 return !this->expression->operator()(query_obj, target_obj, data);
202 template <
typename ObjType>
206 return !this->expression->operator()(query_obj, target_obj, mapping, data);
209 template <
typename ObjType1>
212 return this->expression->requiresAtomBondMapping();
Definition of class CDPL::Chem::MatchExpression.
Safe, type checked container for arbitrary data of variable type.
Definition: Any.hpp:60
Data structure for the common storage of related atom to atom and bond to bond mappings.
Definition: AtomBondMapping.hpp:55
Generic boolean expression interface for the implementation of query/target object equivalence tests ...
Definition: MatchExpression.hpp:75
std::shared_ptr< MatchExpression > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated MatchExpression instances.
Definition: MatchExpression.hpp:81
NOTMatchExpression(const typename MatchExpression< ObjType, void >::SharedPointer &expr_ptr)
Constructs a NOTMatchExpressionBase object that wraps the match expression instance specified by expr...
Definition: NOTMatchExpression.hpp:130
std::shared_ptr< NOTMatchExpression > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated NOTMatchExpression instances.
Definition: NOTMatchExpression.hpp:124
bool requiresAtomBondMapping() const
Tells whether the wrapped match expression requires a reevaluation after a query to target atom/bond ...
Chem::MatchExpression decorator that negates the result of a wrapped Chem::MatchExpression instance.
Definition: NOTMatchExpression.hpp:54
std::shared_ptr< NOTMatchExpression > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated NOTMatchExpression instances.
Definition: NOTMatchExpression.hpp:60
bool requiresAtomBondMapping() const
Tells whether the wrapped match expression requires a reevaluation after a query to target atom/bond ...
Definition: NOTMatchExpression.hpp:189
bool operator()(const ObjType1 &query_obj1, const ObjType2 &query_obj2, const ObjType1 &target_obj1, const ObjType2 &target_obj2, const Base::Any &aux_data) const
Performs an evaluation of the wrapped match expression for the given query and target objects and ret...
Definition: NOTMatchExpression.hpp:173
NOTMatchExpression(const typename MatchExpression< ObjType1, ObjType2 >::SharedPointer &expr_ptr)
Constructs a NOTMatchExpression object that wraps the match expression instance specified by expr_ptr...
Definition: NOTMatchExpression.hpp:66
The namespace of the Chemical Data Processing Library.