tetengo
1.8.2
A multipurpose library set
Loading...
Searching...
No Matches
vocabulary.hpp
Go to the documentation of this file.
1
7
#if !defined(TETENGO_LATTICE_VOCABULARY_HPP)
8
#define TETENGO_LATTICE_VOCABULARY_HPP
9
10
#include <vector>
11
12
#include <boost/core/noncopyable.hpp>
13
14
#include <
tetengo/lattice/entry.hpp
>
15
16
17
namespace
tetengo::lattice
18
{
19
class
connection;
20
class
input;
21
class
node;
22
23
27
class
vocabulary
:
private
boost::noncopyable
28
{
29
public
:
30
// constructors and destructor
31
35
vocabulary
();
36
40
virtual
~vocabulary
();
41
42
43
// functions
44
52
[[nodiscard]] std::vector<entry_view>
find_entries
(
const
input
& key)
const
;
53
62
[[nodiscard]]
connection
find_connection
(
const
node
& from,
const
entry_view
& to)
const
;
63
64
65
private
:
66
// virtual functions
67
68
virtual
std::vector<entry_view> find_entries_impl(
const
input
& key)
const
= 0;
69
70
virtual
connection
find_connection_impl(
const
node
& from,
const
entry_view
& to)
const
= 0;
71
};
72
73
74
}
75
76
77
#endif
tetengo::lattice::connection
A connection.
Definition
connection.hpp:17
tetengo::lattice::entry_view
An entry view.
Definition
entry.hpp:110
tetengo::lattice::input
An input.
Definition
input.hpp:24
tetengo::lattice::node
A node.
Definition
node.hpp:27
tetengo::lattice::vocabulary
A vocabulary.
Definition
vocabulary.hpp:28
tetengo::lattice::vocabulary::find_entries
std::vector< entry_view > find_entries(const input &key) const
Finds entries.
tetengo::lattice::vocabulary::vocabulary
vocabulary()
Creates a vocabulary.
tetengo::lattice::vocabulary::~vocabulary
virtual ~vocabulary()
Destroys the vocabulary.
tetengo::lattice::vocabulary::find_connection
connection find_connection(const node &from, const entry_view &to) const
Finds a connection between an origin node and a destination entry.
entry.hpp
An entry.
tetengo::lattice
A lattice library.
library
lattice
cpp
include
tetengo
lattice
vocabulary.hpp
Generated on Sat Aug 31 2024 15:54:00 for tetengo by
1.12.0