tetengo 1.8.1
A multipurpose library set
|
An unordered map vocabulary. More...
#include <unordered_map_vocabulary.hpp>
Public Member Functions | |
unordered_map_vocabulary (std::vector< std::pair< std::string, std::vector< entry > > > entries, std::vector< std::pair< std::pair< entry, entry >, int > > connections, std::function< std::size_t(const entry_view &)> entry_hash, std::function< bool(const entry_view &, const entry_view &)> entry_equal_to) | |
Creates an unordered map vocabulary. | |
virtual | ~unordered_map_vocabulary () |
Destroys the unordered map vocabulary. | |
Public Member Functions inherited from tetengo::lattice::vocabulary | |
vocabulary () | |
Creates a vocabulary. | |
virtual | ~vocabulary () |
Destroys the vocabulary. | |
std::vector< entry_view > | find_entries (const input &key) const |
Finds entries. | |
connection | find_connection (const node &from, const entry_view &to) const |
Finds a connection between an origin node and a destination entry. | |
An unordered map vocabulary.
tetengo::lattice::unordered_map_vocabulary::unordered_map_vocabulary | ( | std::vector< std::pair< std::string, std::vector< entry > > > | entries, |
std::vector< std::pair< std::pair< entry, entry >, int > > | connections, | ||
std::function< std::size_t(const entry_view &)> | entry_hash, | ||
std::function< bool(const entry_view &, const entry_view &)> | entry_equal_to | ||
) |
Creates an unordered map vocabulary.
entries | Entries. |
connections | Connections. |
entry_hash | A hash function for an entry. |
entry_equal_to | An eqaul_to function for an entry. |