tetengo 1.8.1
A multipurpose library set
Loading...
Searching...
No Matches
entry.h File Reference

An entry. More...

#include <stddef.h>
#include <tetengo/lattice/input.h>
#include <tetengo/lattice/stringView.h>
+ Include dependency graph for entry.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  tetengo_lattice_entry_tag
 An entry. More...
 
struct  tetengo_lattice_entryView_tag
 An entry view. More...
 
struct  tetengo_lattice_keyEntriesPair_tag
 A pair of a key and entries. More...
 

Typedefs

typedef const struct tetengo_lattice_entry_keyHandle_tag * tetengo_lattice_entry_keyHandle_t
 An entry key handle.
 
typedef const struct tetengo_lattice_entryView_keyHandle_tag * tetengo_lattice_entryView_keyHandle_t
 An entry view key handle.
 
typedef const struct tetengo_lattice_entryView_valueHandle_tag * tetengo_lattice_entryView_valueHandle_t
 An entry view value handle.
 
typedef struct tetengo_lattice_entry_tag tetengo_lattice_entry_t
 An entry.
 
typedef struct tetengo_lattice_entryView_tag tetengo_lattice_entryView_t
 An entry view.
 
typedef struct tetengo_lattice_keyEntriesPair_tag tetengo_lattice_keyEntriesPair_t
 A pair of a key and entries.
 

Functions

const tetengo_lattice_input_t * tetengo_lattice_entry_createKeyOf (tetengo_lattice_entry_keyHandle_t handle)
 Creates an entry key by a handle.
 
tetengo_lattice_entry_keyHandle_t tetengo_lattice_entry_toKeyHandle (const tetengo_lattice_input_t *p_content)
 Returns the entry key handle.
 
const tetengo_lattice_entryView_ttetengo_lattice_entryView_bosEos ()
 Returns the pointer to the BOS/EOS (Beginning/End of Sequence) entry.
 
const tetengo_lattice_input_t * tetengo_lattice_entryView_createKeyOf (tetengo_lattice_entryView_keyHandle_t handle)
 Creates an entry view key by a handle.
 
tetengo_lattice_entryView_keyHandle_t tetengo_lattice_entryView_toKeyHandle (const tetengo_lattice_input_t *p_content)
 Returns the entry view key handle.
 
const void * tetengo_lattice_entryView_valueOf (tetengo_lattice_entryView_valueHandle_t handle)
 Returns the entry view value by a handle.
 

Detailed Description

An entry.

Copyright (C) 2019-2023 kaoru https://www.tetengo.org/

Function Documentation

◆ tetengo_lattice_entry_createKeyOf()

const tetengo_lattice_input_t * tetengo_lattice_entry_createKeyOf ( tetengo_lattice_entry_keyHandle_t  handle)

Creates an entry key by a handle.

Parameters
handleA handle.
Returns
A pointer to an entry key.

◆ tetengo_lattice_entry_toKeyHandle()

tetengo_lattice_entry_keyHandle_t tetengo_lattice_entry_toKeyHandle ( const tetengo_lattice_input_t *  p_content)

Returns the entry key handle.

Parameters
p_contentA pointer to a content.
Returns
The key handle. Or NULL when p_content is NULL.

◆ tetengo_lattice_entryView_bosEos()

const tetengo_lattice_entryView_t * tetengo_lattice_entryView_bosEos ( )

Returns the pointer to the BOS/EOS (Beginning/End of Sequence) entry.

Returns
The pointer to the BOS/EOS entry.

◆ tetengo_lattice_entryView_createKeyOf()

const tetengo_lattice_input_t * tetengo_lattice_entryView_createKeyOf ( tetengo_lattice_entryView_keyHandle_t  handle)

Creates an entry view key by a handle.

Parameters
handleA handle.
Returns
A pointer to an entry view key.

◆ tetengo_lattice_entryView_toKeyHandle()

tetengo_lattice_entryView_keyHandle_t tetengo_lattice_entryView_toKeyHandle ( const tetengo_lattice_input_t *  p_content)

Returns the entry view key handle.

Parameters
p_contentA pointer to a content.
Returns
The key handle. Or NULL when p_content is NULL.

◆ tetengo_lattice_entryView_valueOf()

const void * tetengo_lattice_entryView_valueOf ( tetengo_lattice_entryView_valueHandle_t  handle)

Returns the entry view value by a handle.

Parameters
handleA handle.
Returns
The value.