All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros 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

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 41 of file Match.h.

Constructor & Destructor Documentation

hext::Match::Match ( )
hext::Match::Match ( const Match )
hext::Match::Match ( Match &&  )
virtual hext::Match::~Match ( )

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 )
Match& hext::Match::operator= ( Match &&  )

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