libhext: C++ Library Documentation
1.0.12-3ea013c
|
Abstract base for every Match. More...
Public Member Functions | |
Match () noexcept=default | |
Match (const Match &)=default | |
Match (Match &&) noexcept=default | |
Match & | operator= (const Match &)=default |
Match & | operator= (Match &&) noexcept=default |
virtual | ~Match () noexcept=default |
virtual std::unique_ptr< Match > | clone () const =0 |
Clones derived object. More... | |
virtual bool | matches (const GumboNode *node) const =0 |
Returns true if this Match matches node. More... | |
Abstract base for every Match.
Matches are applied to HTML nodes with Match::matches() which will return true if the HTML node matches.
Note: You probably don't want to inherit from this class directly, unless you want to provide your own Match::clone() method. If your subclass has a copy constructor, you can extend from hext::Cloneable<YourSubclass, hext::Match> which provides a generic clone method.
|
defaultnoexcept |
|
default |
|
defaultnoexcept |
|
virtualdefaultnoexcept |
|
pure virtual |
Clones derived object.
Implemented in hext::Cloneable< NegateMatch, Match >, hext::Cloneable< FunctionMatch, Match >, hext::Cloneable< ChildCountMatch, Match >, hext::Cloneable< OnlyChildMatch, Match >, hext::Cloneable< TypeRegexMatch, Match >, hext::Cloneable< AttributeMatch, Match >, hext::Cloneable< NthChildMatch, Match >, hext::Cloneable< AttributeCountMatch, Match >, and hext::Cloneable< FunctionValueMatch, Match >.
|
pure virtual |
Returns true if this Match matches node.
Implemented in hext::TypeRegexMatch, hext::NegateMatch, hext::FunctionValueMatch, hext::FunctionMatch, hext::AttributeMatch, hext::OnlyChildMatch, hext::NthChildMatch, hext::ChildCountMatch, and hext::AttributeCountMatch.