tetengo 1.8.2
A multipurpose library set
Loading...
Searching...
No Matches
nBestIterator.h
Go to the documentation of this file.
1
7#if !defined(TETENGO_LATTICE_NBESTITERATOR_H)
8#define TETENGO_LATTICE_NBESTITERATOR_H
9
10#include <stdbool.h>
11
16
17
18#if defined(__cplusplus)
19extern "C" {
20#endif
21
22#if !defined(DOCUMENTATION)
23typedef struct tetengo_lattice_nBestIterator_tag tetengo_lattice_nBestIterator_t;
24#endif
25
26
39tetengo_lattice_nBestIterator_t* tetengo_lattice_nBestIterator_create(
40 const tetengo_lattice_lattice_t* p_lattice,
41 const tetengo_lattice_node_t* p_eos_node,
42 tetengo_lattice_constraint_t* p_constraint);
43
49void tetengo_lattice_nBestIterator_destroy(const tetengo_lattice_nBestIterator_t* p_iterator);
50
58tetengo_lattice_path_t* tetengo_lattice_nBestIterator_createPath(const tetengo_lattice_nBestIterator_t* p_iterator);
59
68bool tetengo_lattice_nBestIterator_hasNext(const tetengo_lattice_nBestIterator_t* p_iterator);
69
75void tetengo_lattice_nBestIterator_next(tetengo_lattice_nBestIterator_t* p_iterator);
76
77
78#if defined(__cplusplus)
79}
80#endif
81
82
83#endif
A constraint.
A lattice.
tetengo_lattice_nBestIterator_t * tetengo_lattice_nBestIterator_create(const tetengo_lattice_lattice_t *p_lattice, const tetengo_lattice_node_t *p_eos_node, tetengo_lattice_constraint_t *p_constraint)
Creates an iterator.
void tetengo_lattice_nBestIterator_next(tetengo_lattice_nBestIterator_t *p_iterator)
Increments the iterator.
bool tetengo_lattice_nBestIterator_hasNext(const tetengo_lattice_nBestIterator_t *p_iterator)
Returns true when the iterator will return more elements.
void tetengo_lattice_nBestIterator_destroy(const tetengo_lattice_nBestIterator_t *p_iterator)
Destroys an iterator.
tetengo_lattice_path_t * tetengo_lattice_nBestIterator_createPath(const tetengo_lattice_nBestIterator_t *p_iterator)
Dereferences the iterator.
A node.
A path.
A node.
Definition node.h:25