LibDocument

image-alt

Document and Trie Processing.


ldoc_vis_nde_t Struct Reference

Version: 0.1.1

A node visitor object calls the given visitor functions based on node type. More...

#include <document.h>

Public Attributes

ldoc_ser_t *(* vis_rt )(ldoc_nde_t *nde, ldoc_coord_t *coord)
 
ldoc_ser_t *(* vis_ua )(ldoc_nde_t *nde, ldoc_coord_t *coord)
 
ldoc_ser_t *(* vis_par )(ldoc_nde_t *nde, ldoc_coord_t *coord)
 
ldoc_ser_t *(* vis_ul )(ldoc_nde_t *nde, ldoc_coord_t *coord)
 
ldoc_ser_t *(* vis_ol )(ldoc_nde_t *nde, ldoc_coord_t *coord)
 
ldoc_ser_t *(* vis_anc )(ldoc_nde_t *nde, ldoc_coord_t *coord)
 
ldoc_ser_t *(* vis_nn )(ldoc_nde_t *nde, ldoc_coord_t *coord)
 
ldoc_ser_t *(* vis_oo )(ldoc_nde_t *nde, ldoc_coord_t *coord)
 
ldoc_ser_t *(* vis_h1 )(ldoc_nde_t *nde, ldoc_coord_t *coord)
 
ldoc_ser_t *(* vis_h2 )(ldoc_nde_t *nde, ldoc_coord_t *coord)
 
ldoc_ser_t *(* vis_h3 )(ldoc_nde_t *nde, ldoc_coord_t *coord)
 
ldoc_ser_t *(* vis_h4 )(ldoc_nde_t *nde, ldoc_coord_t *coord)
 
ldoc_ser_t *(* vis_h5 )(ldoc_nde_t *nde, ldoc_coord_t *coord)
 
ldoc_ser_t *(* vis_h6 )(ldoc_nde_t *nde, ldoc_coord_t *coord)
 

Detailed Description

A node visitor object calls the given visitor functions based on node type.

Note: This structure and the enumerations ldoc_struct_t and ldoc_content_t go hand-in-hand. Each content type can have its own visitor, but it is also possible to re-use a single function for all content types.

Member Data Documentation

ldoc_ser_t*(* ldoc_vis_nde_t::vis_anc) (ldoc_nde_t *nde, ldoc_coord_t *coord)

Called when visiting an "anchor" node (LDOC_NDE_ANC).

ldoc_ser_t*(* ldoc_vis_nde_t::vis_h1) (ldoc_nde_t *nde, ldoc_coord_t *coord)

Called when visiting a "header 1" node (LDOC_NDE_H1).

ldoc_ser_t*(* ldoc_vis_nde_t::vis_h2) (ldoc_nde_t *nde, ldoc_coord_t *coord)

Called when visiting a "header 2" node (LDOC_NDE_H2).

ldoc_ser_t*(* ldoc_vis_nde_t::vis_h3) (ldoc_nde_t *nde, ldoc_coord_t *coord)

Called when visiting a "header 3" node (LDOC_NDE_H3).

ldoc_ser_t*(* ldoc_vis_nde_t::vis_h4) (ldoc_nde_t *nde, ldoc_coord_t *coord)

Called when visiting a "header 4" node (LDOC_NDE_H4).

ldoc_ser_t*(* ldoc_vis_nde_t::vis_h5) (ldoc_nde_t *nde, ldoc_coord_t *coord)

Called when visiting a "header 5" node (LDOC_NDE_H5).

ldoc_ser_t*(* ldoc_vis_nde_t::vis_h6) (ldoc_nde_t *nde, ldoc_coord_t *coord)

Called when visiting a "header 6" node (LDOC_NDE_H6).

ldoc_ser_t*(* ldoc_vis_nde_t::vis_nn) (ldoc_nde_t *nde, ldoc_coord_t *coord)

Called when visiting a "named node" (LDOC_NDE_NN).

ldoc_ser_t*(* ldoc_vis_nde_t::vis_ol) (ldoc_nde_t *nde, ldoc_coord_t *coord)

Called when visiting an "ordered list" node (LDOC_NDE_OL).

ldoc_ser_t*(* ldoc_vis_nde_t::vis_oo) (ldoc_nde_t *nde, ldoc_coord_t *coord)

Called when visiting an "ontology object" node (LDOC_NDE_OO).

ldoc_ser_t*(* ldoc_vis_nde_t::vis_par) (ldoc_nde_t *nde, ldoc_coord_t *coord)

Called when visiting a "paragraph" node (LDOC_NDE_PAR).

ldoc_ser_t*(* ldoc_vis_nde_t::vis_rt) (ldoc_nde_t *nde, ldoc_coord_t *coord)

Called when visiting the document root (LDOC_NDE_RT).

ldoc_ser_t*(* ldoc_vis_nde_t::vis_ua) (ldoc_nde_t *nde, ldoc_coord_t *coord)

Called when visiting an "unassigned" node (LDOC_NDE_UA).

ldoc_ser_t*(* ldoc_vis_nde_t::vis_ul) (ldoc_nde_t *nde, ldoc_coord_t *coord)

Called when visiting an "unordered list" node (LDOC_NDE_UL).


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