Dillo v3.1.1-46-g8a360e32
Loading...
Searching...
No Matches
Doctree Class Reference

HTML document tree interface. More...

#include <doctree.hh>

Public Member Functions

 Doctree ()
 
 ~Doctree ()
 
DoctreeNodepush ()
 
void pop ()
 
DoctreeNodetop ()
 
DoctreeNodeparent (const DoctreeNode *node)
 
DoctreeNodesibling (const DoctreeNode *node)
 

Private Attributes

DoctreeNodetopNode
 
DoctreeNoderootNode
 
int num
 

Detailed Description

HTML document tree interface.

The Doctree class defines the interface to the parsed HTML document tree as it is used for CSS selector matching.

Definition at line 48 of file doctree.hh.

Constructor & Destructor Documentation

◆ Doctree()

Doctree::Doctree ( )
inline

Definition at line 55 of file doctree.hh.

References num, rootNode, and topNode.

◆ ~Doctree()

Doctree::~Doctree ( )
inline

Definition at line 61 of file doctree.hh.

References rootNode.

Member Function Documentation

◆ parent()

DoctreeNode * Doctree::parent ( const DoctreeNode node)
inline

Definition at line 87 of file doctree.hh.

References DoctreeNode::parent, and rootNode.

Referenced by CssSelector::match().

◆ pop()

void Doctree::pop ( )
inline

Definition at line 75 of file doctree.hh.

References DoctreeNode::parent, rootNode, and topNode.

Referenced by StyleEngine::endElement().

◆ push()

DoctreeNode * Doctree::push ( )
inline

◆ sibling()

DoctreeNode * Doctree::sibling ( const DoctreeNode node)
inline

Definition at line 94 of file doctree.hh.

References DoctreeNode::sibling.

Referenced by CssSelector::match().

◆ top()

Member Data Documentation

◆ num

int Doctree::num
private

Definition at line 52 of file doctree.hh.

Referenced by Doctree(), and push().

◆ rootNode

DoctreeNode* Doctree::rootNode
private

Definition at line 51 of file doctree.hh.

Referenced by Doctree(), parent(), pop(), top(), and ~Doctree().

◆ topNode

DoctreeNode* Doctree::topNode
private

Definition at line 50 of file doctree.hh.

Referenced by Doctree(), pop(), push(), and top().


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