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

A custom input definition. More...

#include <input.h>

Public Attributes

void * p_context
 
bool(* equal_to_proc )(void *p_context, void *p_another_context)
 The procedure for equality comparation.
 
size_t(* hash_value_proc )(void *p_context)
 The procedure for hash value.
 
size_t(* length_proc )(void *p_context)
 The procedure for length.
 
void *(* create_subrange_context_proc )(void *p_context, size_t offset, size_t length)
 The procedure for creating a subrange context.
 
void(* destroy_subraneg_context_proc )(void *p_context)
 The procedure for destroying a subrange context.
 
bool(* append_proc )(void *p_context, void *p_another_context)
 The procedure for append.
 

Detailed Description

A custom input definition.

Member Data Documentation

◆ append_proc

bool(* tetengo_lattice_customInputDefinition_tag::append_proc) (void *p_context, void *p_another_context)

The procedure for append.

The content in the context pointed by p_another_context may be moved into p_context.

Parameters

  • p_context: A pointer to the context.
  • p_another_context: A pointer to another input context.
Return values
trueWhen p_another is appended to this input.
falseOtherwise.

◆ create_subrange_context_proc

void *(* tetengo_lattice_customInputDefinition_tag::create_subrange_context_proc) (void *p_context, size_t offset, size_t length)

The procedure for creating a subrange context.

Parameters

  • p_context: A pointer to a superrange context.
  • offset: An offset.
  • length: A length.
Returns
A pointer to a subrange context. Or offset and/or length are out of the range of the input.

◆ destroy_subraneg_context_proc

void(* tetengo_lattice_customInputDefinition_tag::destroy_subraneg_context_proc) (void *p_context)

The procedure for destroying a subrange context.

Parameters

  • p_context: A pointer to a subrange context.

◆ equal_to_proc

bool(* tetengo_lattice_customInputDefinition_tag::equal_to_proc) (void *p_context, void *p_another_context)

The procedure for equality comparation.

Parameters

  • p_context: A pointer to the context.
  • p_another_context: A pointer to another input context.
Return values
trueWhen p_context is equal to p_another_context.
falseOtherwise.

◆ hash_value_proc

size_t(* tetengo_lattice_customInputDefinition_tag::hash_value_proc) (void *p_context)

The procedure for hash value.

Parameters

  • p_context: A pointer to the context.
Returns
The hash value. Or (size_t)-1 when p_context is NULL.

◆ length_proc

size_t(* tetengo_lattice_customInputDefinition_tag::length_proc) (void *p_context)

The procedure for length.

Parameters

  • p_context: A pointer to the context.
Returns
The length. Or (size_t)-1 when p_context is NULL.

◆ p_context

void* tetengo_lattice_customInputDefinition_tag::p_context

The pointer to the context.


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