15 #ifndef HEXT_CHILD_COUNT_MATCH_H_INCLUDED
16 #define HEXT_CHILD_COUNT_MATCH_H_INCLUDED
49 :
public Cloneable<ChildCountMatch, Match>
59 bool matches(
const GumboNode * node)
const noexcept
override;
64 unsigned int count_child_elements(
const GumboNode * node)
const noexcept;
67 unsigned int child_count_;
Defines template hext::Cloneable.
Defines HEXT_PUBLIC and HEXT_PRIVATE.
Matches HTML elements that have a certain amount of children of type element (excluding text nodes,...
ChildCountMatch(unsigned int child_count) noexcept
Construct a ChildCountMatch that matches HTML elements with a child_count amount of children.
bool matches(const GumboNode *node) const noexcept override
Return true if node has child_count amount of children.
Curiously recurring template pattern that extends a base class to provide a virtual method Cloneable:...