15 #ifndef HEXT_ONLY_CHILD_MATCH_H_INCLUDED
16 #define HEXT_ONLY_CHILD_MATCH_H_INCLUDED
57 bool matches(
const GumboNode * node)
const noexcept
override;
70 static_cast<int>(right));
79 static_cast<int>(right));
Defines template hext::Cloneable.
Defines HEXT_PUBLIC and HEXT_PRIVATE.
Curiously recurring template pattern that extends a base class to provide a virtual method Cloneable:...
Matches HTML nodes that are the only child of their parent HTML element.
OnlyChildMatch(Option options=Option::AnyType) noexcept
Constructs an OnlyChildMatch.
Option
OnlyChildMatch's options.
bool matches(const GumboNode *node) const noexcept override
Returns true if node is the only child of its parent.
HEXT_PUBLIC NthChildMatch::Option operator|(NthChildMatch::Option left, NthChildMatch::Option right) noexcept
Applies Bitwise-OR to NthChildMatch::Option.
HEXT_PUBLIC NthChildMatch::Option operator&(NthChildMatch::Option left, NthChildMatch::Option right) noexcept
Applies Bitwise-AND to NthChildMatch::Option.