All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
hext::Match Class Referenceabstract

Abstract base for every Match. More...

Inheritance diagram for hext::Match:
Inheritance graph
[legend]

Public Member Functions

 Match () noexcept=default
 
 Match (const Match &)=default
 
 Match (Match &&) noexcept=default
 
Matchoperator= (const Match &)=default
 
Matchoperator= (Match &&) noexcept=default
 
virtual ~Match () noexcept=default
 
virtual std::unique_ptr< Matchclone () const =0
 Clones derived object. More...
 
virtual bool matches (const GumboNode *node) const =0
 Returns true if this Match matches node. More...
 

Detailed Description

Abstract base for every Match.

Matches are applied to HTML nodes with Match::matches() which will return true if the HTML node matches.

Note: You probably don't want to inherit from this class directly, unless you want to provide your own Match::clone() method. If your subclass has a copy constructor, you can extend from hext::Cloneable<YourSubclass, hext::Match> which provides a generic clone method.

Definition at line 39 of file Match.h.

Constructor & Destructor Documentation

hext::Match::Match ( )
defaultnoexcept
hext::Match::Match ( const Match )
default
hext::Match::Match ( Match &&  )
defaultnoexcept
virtual hext::Match::~Match ( )
virtualdefaultnoexcept

Member Function Documentation

virtual std::unique_ptr<Match> hext::Match::clone ( ) const
pure virtual
virtual bool hext::Match::matches ( const GumboNode *  node) const
pure virtual
Match& hext::Match::operator= ( const Match )
default
Match& hext::Match::operator= ( Match &&  )
defaultnoexcept

The documentation for this class was generated from the following file: