|
libhext: C++ Library Documentation 1.0.14-6065bc7
|
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. | |
Public Member Functions inherited from hext::Cloneable< FunctionMatch, Match > | |
| virtual std::unique_ptr< Match > | clone () const override |
| Clones objects of template type Derived and returns an owning pointer to the newly allocated Base. | |
Public Member Functions inherited from hext::Match | |
| 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.