![]() |
RDKit
Open-source cheminformatics and machine learning.
|
#include <FilterMatchers.h>
Public Member Functions | |
FilterHierarchyMatcher () | |
FilterHierarchyMatcher (const FilterMatcherBase &matcher) | |
virtual std::string | getName () const |
Return the name for this node (from the underlying FilterMatcherBase) More... | |
bool | isValid () const |
returns true if this node has a valid matcher More... | |
void | setPattern (const FilterMatcherBase &matcher) |
Set a new FilterMatcherBase for this node. More... | |
boost::shared_ptr< FilterHierarchyMatcher > | addChild (const FilterHierarchyMatcher &hierarchy) |
virtual bool | getMatches (const ROMol &mol, std::vector< FilterMatch > &matches) const |
returns the FilterMatches against the given molecule More... | |
virtual bool | hasMatch (const ROMol &mol) const |
Does this node match the molecule. More... | |
virtual boost::shared_ptr< FilterMatcherBase > | copy () const |
copys the FilterHierarchyMatcher into a FilterMatcherBase More... | |
![]() | |
FilterMatcherBase (const std::string &name=DEFAULT_FILTERMATCHERBASE_NAME) | |
FilterMatcherBase (const FilterMatcherBase &rhs) | |
virtual | ~FilterMatcherBase () |
virtual boost::shared_ptr< FilterMatcherBase > | Clone () const |
Clone - deprecated. More... | |
Definition at line 453 of file FilterMatchers.h.
|
inline |
Definition at line 459 of file FilterMatchers.h.
|
inline |
Constructs a FilterHierarchyMatcher from a FilterMatchBase A FilterHierarchyMatcher is a tree hierarchy where to match a child node, one needs to match the parent first. For each branch, the lowest nodes are returned when getting the filter matches.
Definition at line 471 of file FilterMatchers.h.
|
inline |
add a FilterHierarchy as a child. returns the FilterHierarchy pointer used in the tree (this is a shallow copy of the original)
Definition at line 505 of file FilterMatchers.h.
References PRECONDITION.
|
inlinevirtual |
copys the FilterHierarchyMatcher into a FilterMatcherBase
Implements RDKit::FilterMatcherBase.
Definition at line 532 of file FilterMatchers.h.
References RDUNUSED_PARAM.
|
virtual |
returns the FilterMatches against the given molecule
Implements RDKit::FilterMatcherBase.
|
inlinevirtual |
Return the name for this node (from the underlying FilterMatcherBase)
Reimplemented from RDKit::FilterMatcherBase.
Definition at line 477 of file FilterMatchers.h.
|
inlinevirtual |
Does this node match the molecule.
Implements RDKit::FilterMatcherBase.
Definition at line 526 of file FilterMatchers.h.
|
inlinevirtual |
returns true if this node has a valid matcher
Implements RDKit::FilterMatcherBase.
Definition at line 485 of file FilterMatchers.h.
|
inline |
Set a new FilterMatcherBase for this node.
Definition at line 493 of file FilterMatchers.h.
References RDKit::FilterMatcherBase::copy(), RDKit::FilterMatcherBase::isValid(), and PRECONDITION.