hcxselect
1.1
A CSS selector engine for htmlcxx
|
#include <hcxselect.h>
Public Member Functions | |
Selection () | |
Selection (const tree< htmlcxx::HTML::Node > &tree, const std::string &expr=std::string()) | |
Selection (const NodeSet &nodes, const std::string &expr=std::string()) | |
Selection | select (const std::string &expr) |
Convenient wrapper class for select().
This is a subclass of NodeSet, providing convenient constructors and a select() member function. This allows for chaining of different selectors.
Definition at line 102 of file hcxselect.h.
hcxselect::Selection::Selection | ( | ) |
Constructs an empty selection.
Definition at line 766 of file hcxselect.cpp.
hcxselect::Selection::Selection | ( | const tree< htmlcxx::HTML::Node > & | tree, |
const std::string & | expr = std::string() |
||
) |
Constructs a selection containing a whole tree and optionally applies a selector.
Definition at line 774 of file hcxselect.cpp.
hcxselect::Selection::Selection | ( | const NodeSet & | nodes, |
const std::string & | expr = std::string() |
||
) |
Constructs a selection from a set of nodes and optionally applies a selector.
Definition at line 784 of file hcxselect.cpp.
Selection hcxselect::Selection::select | ( | const std::string & | expr | ) |
Returns a new selection by selecting elements from this selection using the given selector expression.
Definition at line 798 of file hcxselect.cpp.