15 #ifndef HEXT_FUNCTION_MATCH_H_INCLUDED
16 #define HEXT_FUNCTION_MATCH_H_INCLUDED
64 bool matches(
const GumboNode * node)
const override;
Defines template hext::Cloneable.
Declares hext::MatchFunction.
Defines HEXT_PUBLIC and HEXT_PRIVATE.
Curiously recurring template pattern that extends a base class to provide a virtual method Cloneable:...
Matches if the result of applying a given MatchFunction to an HTML node returns true.
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...
std::function< bool(const GumboNode *)> MatchFunction
A type of std::function that receives an HTML element and returns a bool.