|
libhext: C++ Library Documentation 1.0.14-6065bc7
|
Matches HTML elements that have a certain amount of children of type element (excluding text nodes, document nodes and others). More...
#include <ChildCountMatch.h>


Public Member Functions | |
| 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. | |
Public Member Functions inherited from hext::Cloneable< ChildCountMatch, 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 HTML elements that have a certain amount of children of type element (excluding text nodes, document nodes and others).
Definition at line 48 of file ChildCountMatch.h.
|
explicitnoexcept |
Construct a ChildCountMatch that matches HTML elements with a child_count amount of children.
|
overridevirtualnoexcept |
Return true if node has child_count amount of children.
| node | A pointer to a GumboNode of type GUMBO_NODE_ELEMENT. |
Implements hext::Match.