tetengo 1.8.2
A multipurpose library set
Loading...
Searching...
No Matches
path.h
Go to the documentation of this file.
1
7#if !defined(TETENGO_LATTICE_PATH_H)
8#define TETENGO_LATTICE_PATH_H
9
10#include <stdbool.h>
11#include <stddef.h>
12
14
15
16#if defined(__cplusplus)
17extern "C" {
18#endif
19
20#if !defined(DOCUMENTATION)
21typedef struct tetengo_lattice_path_tag tetengo_lattice_path_t;
22#endif
23
24
30tetengo_lattice_path_t* tetengo_lattice_path_createEmpty();
31
41tetengo_lattice_path_t* tetengo_lattice_path_create(const tetengo_lattice_node_t* p_nodes, size_t node_count, int cost);
42
48void tetengo_lattice_path_destroy(const tetengo_lattice_path_t* p_path);
49
58bool tetengo_lattice_path_empty(const tetengo_lattice_path_t* p_path);
59
70size_t tetengo_lattice_path_pNodes(const tetengo_lattice_path_t* p_path, tetengo_lattice_node_t* p_nodes);
71
79int tetengo_lattice_path_cost(const tetengo_lattice_path_t* p_path);
80
81
82#if defined(__cplusplus)
83}
84#endif
85
86
87#endif
A node.
tetengo_lattice_path_t * tetengo_lattice_path_createEmpty()
Creates an empty path.
tetengo_lattice_path_t * tetengo_lattice_path_create(const tetengo_lattice_node_t *p_nodes, size_t node_count, int cost)
Creates a path.
int tetengo_lattice_path_cost(const tetengo_lattice_path_t *p_path)
Returns the cost.
size_t tetengo_lattice_path_pNodes(const tetengo_lattice_path_t *p_path, tetengo_lattice_node_t *p_nodes)
Returns the nodes.
bool tetengo_lattice_path_empty(const tetengo_lattice_path_t *p_path)
Returns true when this path is empty.
void tetengo_lattice_path_destroy(const tetengo_lattice_path_t *p_path)
Destroys a path.
A node.
Definition node.h:25