Internal class: performs matching; a wrapper around previous C matching code to make it thread safe. More...
#include <openbabel/parsmart.h>
Public Member Functions | |
OBSmartsMatcher () | |
virtual | ~OBSmartsMatcher () |
bool | match (OBMol &mol, const Pattern *pat, std::vector< std::vector< int > > &mlist, bool single=false) |
Protected Member Functions | |
bool | EvalAtomExpr (AtomExpr *expr, OBAtom *atom) |
bool | EvalBondExpr (BondExpr *expr, OBBond *bond) |
void | SetupAtomMatchTable (std::vector< std::vector< bool > > &ttab, const Pattern *pat, OBMol &mol) |
void | FastSingleMatch (OBMol &mol, const Pattern *pat, std::vector< std::vector< int > > &mlist) |
Protected Attributes | |
std::vector< std::pair< const Pattern *, std::vector< bool > > > | RSCACHE |
std::vector< const Pattern * > | Fragments |
Friends | |
class | OBSSMatch |
Internal class: performs matching; a wrapper around previous C matching code to make it thread safe.
OBSmartsMatcher | ( | ) | [inline] |
virtual ~OBSmartsMatcher | ( | ) | [inline, virtual] |
Referenced by OBSSMatch::Match().
Referenced by OBSSMatch::Match().
void SetupAtomMatchTable | ( | std::vector< std::vector< bool > > & | ttab, |
const Pattern * | pat, | ||
OBMol & | mol | ||
) | [protected] |
void FastSingleMatch | ( | OBMol & | mol, |
const Pattern * | pat, | ||
std::vector< std::vector< int > > & | mlist | ||
) | [protected] |
bool match | ( | OBMol & | mol, |
const Pattern * | pat, | ||
std::vector< std::vector< int > > & | mlist, | ||
bool | single = false |
||
) |
Referenced by OBSmartsPattern::Match(), and OBSmartsPattern::RestrictedMatch().
friend class OBSSMatch [friend] |