GumboInternalNode man page

GumboNode

Synopsis

#include <gumbo.h>

Data Fields

GumboNodeType type
GumboNode * parent
size_t index_within_parent
GumboParseFlags parse_flags
union {
  GumboDocument document
  GumboElement element
  GumboText text
} v

Detailed Description

A supertype for GumboElement and GumboText, so that we can include one generic type in lists of children and cast as necessary to subtypes.

Forward declaration of GumboNode so it can be used recursively in GumboNode.parent.

Field Documentation

GumboNodeType GumboNode::type

The type of node that this is.

GumboNode* GumboNode::parent

Pointer back to parent node. Not owned.

size_t GumboNode::index_within_parent

The index within the parent's children vector of this node.

GumboParseFlags GumboNode::parse_flags

A bitvector of flags containing information about why this element was inserted into the parse tree, including a variety of special parse situations.

union { ... }   GumboNode::v

The actual node data.

Author

Generated automatically by Doxygen for Gumbo from the source code.

Info

Fri Feb 10 2017 Version 0.9.2 Gumbo