hcxselect  1.1
A CSS selector engine for htmlcxx
Public Member Functions
hcxselect::Selection Class Reference

#include <hcxselect.h>

Inheritance diagram for hcxselect::Selection:
Inheritance graph
[legend]

List of all members.

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)

Detailed Description

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.

Examples:

select.cpp.

Definition at line 102 of file hcxselect.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

Selection hcxselect::Selection::select ( const std::string &  expr)

Returns a new selection by selecting elements from this selection using the given selector expression.

Examples:
select.cpp.

Definition at line 798 of file hcxselect.cpp.


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