15 #ifndef HEXT_FUNCTION_VALUE_MATCH_H_INCLUDED
16 #define HEXT_FUNCTION_VALUE_MATCH_H_INCLUDED
59 :
public Cloneable<FunctionValueMatch, Match>
70 std::unique_ptr<ValueTest> value_test);
82 bool matches(const GumboNode * node) const override;
Declares hext::CaptureFunction.
Defines template hext::Cloneable.
Declares hext::ValueTest.
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 CaptureFunction to an HTML node passes a ValueTest.
FunctionValueMatch(CaptureFunction func, std::unique_ptr< ValueTest > value_test)
Constructs a FunctionValueMatch that matches HTML nodes for which a given CaptureFunction returns a r...
~FunctionValueMatch() noexcept override=default
Abstract base for every ValueTest.
std::function< std::string(const GumboNode *)> CaptureFunction
A type of std::function that receives an HTML element and returns a string.