![]() |
RDKit
Open-source cheminformatics and machine learning.
|
#include <FilterMatchers.h>
Public Member Functions | |
| FilterHierarchyMatcher () | |
| FilterHierarchyMatcher (const FilterMatcherBase &matcher) | |
| std::string | getName () const override |
| Return the name for this node (from the underlying FilterMatcherBase) | |
| bool | isValid () const override |
| returns true if this node has a valid matcher | |
| void | setPattern (const FilterMatcherBase &matcher) |
| Set a new FilterMatcherBase for this node. | |
| boost::shared_ptr< FilterHierarchyMatcher > | addChild (const FilterHierarchyMatcher &hierarchy) |
| bool | getMatches (const ROMol &mol, std::vector< FilterMatch > &matches) const override |
| returns the FilterMatches against the given molecule | |
| bool | hasMatch (const ROMol &mol) const override |
| Does this node match the molecule. | |
| boost::shared_ptr< FilterMatcherBase > | copy () const override |
| copys the FilterHierarchyMatcher into a FilterMatcherBase | |
Public Member Functions inherited from RDKit::FilterMatcherBase | |
| FilterMatcherBase (std::string name=DEFAULT_FILTERMATCHERBASE_NAME) | |
| FilterMatcherBase (const FilterMatcherBase &rhs) | |
| virtual | ~FilterMatcherBase () |
| virtual boost::shared_ptr< FilterMatcherBase > | Clone () const |
Definition at line 468 of file FilterMatchers.h.
|
inline |
Definition at line 475 of file FilterMatchers.h.
References RDKit::FilterMatcherBase::FilterMatcherBase().
Referenced by addChild(), and copy().
|
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 484 of file FilterMatchers.h.
References copy(), and RDKit::FilterMatcherBase::FilterMatcherBase().
|
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 514 of file FilterMatchers.h.
References FilterHierarchyMatcher(), and PRECONDITION.
|
inlineoverridevirtual |
copys the FilterHierarchyMatcher into a FilterMatcherBase
Implements RDKit::FilterMatcherBase.
Definition at line 542 of file FilterMatchers.h.
References FilterHierarchyMatcher().
Referenced by FilterHierarchyMatcher().
|
overridevirtual |
returns the FilterMatches against the given molecule
Implements RDKit::FilterMatcherBase.
Referenced by hasMatch().
|
inlineoverridevirtual |
Return the name for this node (from the underlying FilterMatcherBase)
Reimplemented from RDKit::FilterMatcherBase.
Definition at line 488 of file FilterMatchers.h.
Referenced by setPattern().
|
inlineoverridevirtual |
Does this node match the molecule.
Implements RDKit::FilterMatcherBase.
Definition at line 536 of file FilterMatchers.h.
References getMatches().
|
inlineoverridevirtual |
returns true if this node has a valid matcher
Implements RDKit::FilterMatcherBase.
Definition at line 496 of file FilterMatchers.h.
|
inline |
Set a new FilterMatcherBase for this node.
Definition at line 502 of file FilterMatchers.h.
References RDKit::FilterMatcherBase::copy(), RDKit::FilterMatcherBase::FilterMatcherBase(), getName(), RDKit::FilterMatcherBase::isValid(), and PRECONDITION.