tetengo 1.8.2
A multipurpose library set
Loading...
Searching...
No Matches
tetengo_lattice_customVocabularyDefinition_tag Struct Reference

A custom vocabulary definition. More...

#include <vocabulary.h>

Public Attributes

void * p_context
 
size_t(* find_entries_proc )(void *p_context, const tetengo_lattice_input_t *p_key, tetengo_lattice_entryView_t *p_entries)
 The procedure for findEntries.
 
bool(* find_connection_proc )(void *p_context, const tetengo_lattice_node_t *p_from, const tetengo_lattice_entryView_t *p_to, tetengo_lattice_connection_t *p_connection)
 The procedure for findConnection.
 

Detailed Description

A custom vocabulary definition.

Member Data Documentation

◆ find_connection_proc

bool(* tetengo_lattice_customVocabularyDefinition_tag::find_connection_proc) (void *p_context, const tetengo_lattice_node_t *p_from, const tetengo_lattice_entryView_t *p_to, tetengo_lattice_connection_t *p_connection)

The procedure for findConnection.

Parameters

  • p_context: A pointer to the context.
  • p_from: A pointer to an origin node.
  • p_to: A pointer to a destination entry.
  • p_connection: The storage for an output connection.
Return values
trueWhen an output connection is stored.
falseOtherwise.

◆ find_entries_proc

size_t(* tetengo_lattice_customVocabularyDefinition_tag::find_entries_proc) (void *p_context, const tetengo_lattice_input_t *p_key, tetengo_lattice_entryView_t *p_entries)

The procedure for findEntries.

Parameters

  • p_context: A pointer to the context.
  • p_key: A pointer to a key.
  • p_entries: The storage for output entries. Can be NULL.
Returns
An entry count.

◆ p_context

void* tetengo_lattice_customVocabularyDefinition_tag::p_context

The pointer to the context.


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