Chemical Data Processing Library C++ API - Version 1.1.1
Public Types | Public Member Functions | List of all members
CDPL::Chem::NOTMatchExpression< ObjType, void > Class Template Reference

NOTMatchExpression. More...

#include <NOTMatchExpression.hpp>

+ Inheritance diagram for CDPL::Chem::NOTMatchExpression< ObjType, void >:

Public Types

typedef std::shared_ptr< NOTMatchExpressionSharedPointer
 A reference-counted smart pointer [SHPTR] for dynamically allocated NOTMatchExpression instances. More...
 
- Public Types inherited from CDPL::Chem::MatchExpression< ObjType, void >
typedef std::shared_ptr< MatchExpressionSharedPointer
 A reference-counted smart pointer [SHPTR] for dynamically allocated MatchExpression instances. More...
 

Public Member Functions

 NOTMatchExpression (const typename MatchExpression< ObjType, void >::SharedPointer &expr_ptr)
 Constructs a NOTMatchExpressionBase object that wraps the match expression instance specified by expr_ptr. More...
 
bool operator() (const ObjType &query_obj, const ObjType &target_obj, const Base::Any &aux_data) const
 Performs an evaluation of the wrapped match expression for the given query and target objects and returns the inverted result. More...
 
bool operator() (const ObjType &query_obj, const ObjType &target_obj, const AtomBondMapping &mapping, const Base::Any &aux_data) const
 Performs an evaluation of the wrapped match expression for the given query and target objects under consideration of the provided candidate atom/bond mapping and returns the inverted result. More...
 
bool requiresAtomBondMapping () const
 Tells whether the wrapped match expression requires a reevaluation after a query to target atom/bond mapping candidate has been found. More...
 
- Public Member Functions inherited from CDPL::Chem::MatchExpression< ObjType, void >
virtual ~MatchExpression ()
 Virtual Destructor. More...
 

Detailed Description

template<typename ObjType>
class CDPL::Chem::NOTMatchExpression< ObjType, void >

NOTMatchExpression.

Template Parameters
ObjTypeThe type of the query/target objects for which the expression gets evaluated.

Member Typedef Documentation

◆ SharedPointer

template<typename ObjType >
typedef std::shared_ptr<NOTMatchExpression> CDPL::Chem::NOTMatchExpression< ObjType, void >::SharedPointer

A reference-counted smart pointer [SHPTR] for dynamically allocated NOTMatchExpression instances.

Constructor & Destructor Documentation

◆ NOTMatchExpression()

template<typename ObjType >
CDPL::Chem::NOTMatchExpression< ObjType, void >::NOTMatchExpression ( const typename MatchExpression< ObjType, void >::SharedPointer expr_ptr)
inline

Constructs a NOTMatchExpressionBase object that wraps the match expression instance specified by expr_ptr.

Parameters
expr_ptrA pointer to the wrapped Chem::MatchExpression instance.

Member Function Documentation

◆ operator()() [1/2]

template<typename ObjType >
bool CDPL::Chem::NOTMatchExpression< ObjType, void >::operator() ( const ObjType &  query_obj,
const ObjType &  target_obj,
const Base::Any aux_data 
) const
virtual

Performs an evaluation of the wrapped match expression for the given query and target objects and returns the inverted result.

Parameters
query_objThe query object.
target_objThe target object.
aux_dataProvides auxiliary information for the evaluation of the wrapped expression.
Returns
true if the wrapped match expression evaluates to false, and vice versa.

Reimplemented from CDPL::Chem::MatchExpression< ObjType, void >.

◆ operator()() [2/2]

template<typename ObjType >
bool CDPL::Chem::NOTMatchExpression< ObjType, void >::operator() ( const ObjType &  query_obj,
const ObjType &  target_obj,
const AtomBondMapping mapping,
const Base::Any aux_data 
) const
virtual

Performs an evaluation of the wrapped match expression for the given query and target objects under consideration of the provided candidate atom/bond mapping and returns the inverted result.

Parameters
query_objThe query object.
target_objThe target object.
mappingThe current query to target atom/bond mapping candidate to evaluate.
aux_dataProvides auxiliary information for the evaluation of the wrapped expression.
Returns
true if the wrapped match expression evaluates to false, and vice versa.

Reimplemented from CDPL::Chem::MatchExpression< ObjType, void >.

◆ requiresAtomBondMapping()

template<typename ObjType >
bool CDPL::Chem::NOTMatchExpression< ObjType, void >::requiresAtomBondMapping ( ) const
virtual

Tells whether the wrapped match expression requires a reevaluation after a query to target atom/bond mapping candidate has been found.

Returns
true if the expression needs to be evaluated again after a query/target mapping candidate has been found, and false otherwise.

Reimplemented from CDPL::Chem::MatchExpression< ObjType, void >.


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