comparison src/doctree.hh @ 1049:a913df1621ac

comments
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Thu, 23 Apr 2009 11:49:25 +0200
parents df8153796f48
children e9729d5a1416
comparison
equal deleted inserted replaced
1048:52ca66a9a69c 1049:a913df1621ac
9 const char *klass; 9 const char *klass;
10 const char *pseudo; 10 const char *pseudo;
11 const char *id; 11 const char *id;
12 }; 12 };
13 13
14 /**
15 * \brief HTML document tree interface.
16 *
17 * The Doctree class defines the interface to the parsed HTML document tree
18 * as it is used for CSS selector matching.
19 * Currently the Doctree can be represented as stack, however to support
20 * CSS adjacent siblings or for future JavaScript support it may have to
21 * be extended to a real tree.
22 */
14 class Doctree { 23 class Doctree {
15 public: 24 public:
16 virtual ~Doctree () {}; 25 virtual ~Doctree () {};
17 virtual const DoctreeNode *top () = 0; 26 virtual const DoctreeNode *top () = 0;
18 virtual const DoctreeNode *parent (const DoctreeNode *node) = 0; 27 virtual const DoctreeNode *parent (const DoctreeNode *node) = 0;