ELinks 0.18.0
dom_stack Struct Reference

The DOM stack. More...

#include <stack.h>

Collaboration diagram for dom_stack:

Data Fields

struct dom_stack_statestates
 The states currently on the stack.
 
size_t depth
 The depth of the stack.
 
unsigned int flags
 Flags given to ref:[init_dom_stack].
 
struct dom_stack_context ** contexts
 Contexts for the pushed and popped nodes.
 
size_t contexts_size
 The number of active contexts.
 
struct dom_stack_contextcurrent
 The current context.
 

Detailed Description

The DOM stack.

The DOM stack is a convenient way to traverse DOM trees. Also it maintains needed state info and is therefore also a holder of the current context since the stack is used to when the DOM tree is manipulated.

Field Documentation

◆ contexts

struct dom_stack_context** dom_stack::contexts

Contexts for the pushed and popped nodes.

◆ contexts_size

size_t dom_stack::contexts_size

The number of active contexts.

◆ current

struct dom_stack_context* dom_stack::current

The current context.

Only meaningful within dom_stack_callback_T functions.

◆ depth

size_t dom_stack::depth

The depth of the stack.

◆ flags

unsigned int dom_stack::flags

Flags given to ref:[init_dom_stack].

◆ states

struct dom_stack_state* dom_stack::states

The states currently on the stack.


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