libhext: C++ Library Documentation 1.0.13-b24695d
|
Matches if the result of applying a given MatchFunction to an HTML node returns true. More...
#include <FunctionMatch.h>
Public Member Functions | |
FunctionMatch (MatchFunction func) | |
Constructs a FunctionMatch that matches HTML nodes for which a given MatchFunction returns true. | |
bool | matches (const GumboNode *node) const override |
Returns true if the result of calling the given MatchFunction with node as its first argument returns true. | |
![]() | |
virtual std::unique_ptr< Match > | clone () const override |
Clones objects of template type Derived and returns an owning pointer to the newly allocated Base. | |
![]() | |
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 |
Matches if the result of applying a given MatchFunction to an HTML node returns true.
Definition at line 50 of file FunctionMatch.h.
|
explicit |
Constructs a FunctionMatch that matches HTML nodes for which a given MatchFunction returns true.
func | The MatchFunction that will be applied to an HTML node. |
|
overridevirtual |
Returns true if the result of calling the given MatchFunction with node as its first argument returns true.
node | The node which is to be matched. |
Implements hext::Match.