libhext: C++ Library Documentation  1.0.8-3ad0ae4
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 41 of file Match.h.

Constructor & Destructor Documentation

◆ Match() [1/3]

hext::Match::Match ( )
defaultnoexcept

◆ Match() [2/3]

hext::Match::Match ( const Match )
default

◆ Match() [3/3]

hext::Match::Match ( Match &&  )
defaultnoexcept

◆ ~Match()

virtual hext::Match::~Match ( )
virtualdefaultnoexcept

Member Function Documentation

◆ clone()

virtual std::unique_ptr<Match> hext::Match::clone ( ) const
pure virtual

◆ matches()

virtual bool hext::Match::matches ( const GumboNode *  node) const
pure virtual

◆ operator=() [1/2]

Match& hext::Match::operator= ( const Match )
default

◆ operator=() [2/2]

Match& hext::Match::operator= ( Match &&  )
defaultnoexcept

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