libhext: C++ Library Documentation
1.0.12-3ea013c
|
Matches HTML nodes for which every given Match returns false. More...
Public Member Functions | |
NegateMatch (std::vector< std::unique_ptr< Match >> v_matches={}) noexcept | |
Constructs a NegateMatch that matches nodes for which every contained Match returns false. More... | |
NegateMatch (std::unique_ptr< Match > match) | |
Constructs a NegateMatch and appends a Match. More... | |
~NegateMatch () noexcept override=default | |
NegateMatch (NegateMatch &&other) noexcept=default | |
NegateMatch (const NegateMatch &other) | |
NegateMatch & | operator= (NegateMatch &&other) noexcept=default |
NegateMatch & | operator= (const NegateMatch &other) |
void | append_match (std::unique_ptr< Match > match) |
Appends a Match. More... | |
bool | matches (const GumboNode *node) const override |
Returns true if every contained Match returns false for node. More... | |
Public Member Functions inherited from hext::Cloneable< NegateMatch, 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. More... | |
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 nodes for which every given Match returns false.
Definition at line 53 of file NegateMatch.h.
|
explicitnoexcept |
Constructs a NegateMatch that matches nodes for which every contained Match returns false.
v_matches | An optional vector containing Matches. |
|
explicit |
Constructs a NegateMatch and appends a Match.
match | The Match to append. |
|
overridedefaultnoexcept |
|
defaultnoexcept |
hext::NegateMatch::NegateMatch | ( | const NegateMatch & | other | ) |
void hext::NegateMatch::append_match | ( | std::unique_ptr< Match > | match | ) |
|
overridevirtual |
Returns true if every contained Match returns false for node.
node | A pointer to a GumboNode. |
Implements hext::Match.
NegateMatch& hext::NegateMatch::operator= | ( | const NegateMatch & | other | ) |
|
defaultnoexcept |