const_node

Defined in header: <orcus/dom_tree.hpp>

class const_node

Read-only handle into an XML DOM tree. Exposes accessors for inspecting a single node (its type, name, attributes, children, and parent) without allowing modification.

Note

A const_node is a lightweight value-type handle into storage owned by the enclosing document_tree. Do not use a const_node after its document_tree has been destroyed.

Subclassed by orcus::dom::node

Public Functions

const_node()
const_node(const const_node &other)
const_node(const_node &&other)
~const_node()
node_t type() const
size_t child_count() const
const_node child(size_t index) const
entity_name name() const
std::string_view attribute(const entity_name &name) const
std::string_view attribute(std::string_view name) const
size_t attribute_count() const
const_node parent() const
void swap(const_node &other)
const_node &operator=(const const_node &other)
bool operator==(const const_node &other) const
bool operator!=(const const_node &other) const