tetengo 1.8.1
A multipurpose library set
Loading...
Searching...
No Matches
tetengo::lattice::unordered_map_vocabulary Class Reference

An unordered map vocabulary. More...

#include <unordered_map_vocabulary.hpp>

+ Inheritance diagram for tetengo::lattice::unordered_map_vocabulary:
+ Collaboration diagram for tetengo::lattice::unordered_map_vocabulary:

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_viewfind_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.
 

Detailed Description

An unordered map vocabulary.

Constructor & Destructor Documentation

◆ 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.

Parameters
entriesEntries.
connectionsConnections.
entry_hashA hash function for an entry.
entry_equal_toAn eqaul_to function for an entry.

The documentation for this class was generated from the following file: