29 #ifndef CDPL_CHEM_NOTMATCHEXPRESSION_HPP
30 #define CDPL_CHEM_NOTMATCHEXPRESSION_HPP
53 template <
typename ObjType1,
typename ObjType2 =
void>
68 expression(expr_ptr) {}
80 bool operator()(
const ObjType1& query_obj1,
const ObjType2& query_obj2,
const ObjType1& target_obj1,
const ObjType2& target_obj2,
95 bool operator()(
const ObjType1& query_obj1,
const ObjType2& query_obj2,
const ObjType1& target_obj1,
const ObjType2& target_obj2,
118 template <
typename ObjType>
133 expression(expr_ptr) {}
143 bool operator()(
const ObjType& query_obj,
const ObjType& target_obj,
const Base::Any& aux_data)
const;
174 template <
typename ObjType1,
typename ObjType2>
176 const ObjType1& target_obj1,
const ObjType2& target_obj2,
179 return !this->expression->operator()(query_obj1, query_obj2, target_obj1, target_obj2, data);
182 template <
typename ObjType1,
typename ObjType2>
184 const ObjType1& target_obj1,
const ObjType2& target_obj2,
187 return !this->expression->operator()(query_obj1, query_obj2, target_obj1, target_obj2, mapping, data);
190 template <
typename ObjType1,
typename ObjType2>
193 return this->expression->requiresAtomBondMapping();
197 template <
typename ObjType>
201 return !this->expression->operator()(query_obj, target_obj, data);
204 template <
typename ObjType>
208 return !this->expression->operator()(query_obj, target_obj, mapping, data);
211 template <
typename ObjType1>
214 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 the NOTMatchExpressionBase object that wraps the match expression instance specified by ex...
Definition: NOTMatchExpression.hpp:132
std::shared_ptr< NOTMatchExpression > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated NOTMatchExpression instances.
Definition: NOTMatchExpression.hpp:126
bool requiresAtomBondMapping() const
Tells whether the wrapped match expression requires a reevaluation after a query to target atom/bond ...
Chem::MatchExpression implementation that negates the evaluation results of a wrapped external expres...
Definition: NOTMatchExpression.hpp:55
std::shared_ptr< NOTMatchExpression > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated NOTMatchExpression instances.
Definition: NOTMatchExpression.hpp:61
bool requiresAtomBondMapping() const
Tells whether the wrapped match expression requires a reevaluation after a query to target atom/bond ...
Definition: NOTMatchExpression.hpp:191
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:175
NOTMatchExpression(const typename MatchExpression< ObjType1, ObjType2 >::SharedPointer &expr_ptr)
Constructs the NOTMatchExpression object that wraps the match expression instance specified by expr_p...
Definition: NOTMatchExpression.hpp:67
The namespace of the Chemical Data Processing Library.