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

An entry view. More...

#include <entry.hpp>

Public Member Functions

constexpr entry_view (const input *p_key, const std::any *value, int cost)
 Creates an entry view.
 
 entry_view (const entry &entry)
 Creates an entry view.
 
constexpr const inputp_key () const
 Returns the pointer to the key.
 
constexpr const std::any * value () const
 Returns the value.
 
constexpr int cost () const
 Returns the cost.
 

Static Public Member Functions

static const entry_viewbos_eos ()
 Returns the BOS/EOS (Beginning/End of Sequence) entry.
 

Detailed Description

An entry view.

Constructor & Destructor Documentation

◆ entry_view() [1/2]

constexpr tetengo::lattice::entry_view::entry_view ( const input p_key,
const std::any *  value,
int  cost 
)
inlineconstexpr

Creates an entry view.

Parameters
p_keyA pointer to a key.
valueA value.
costA cost.

◆ entry_view() [2/2]

tetengo::lattice::entry_view::entry_view ( const entry entry)

Creates an entry view.

Parameters
entryAn entry.

Member Function Documentation

◆ bos_eos()

static const entry_view & tetengo::lattice::entry_view::bos_eos ( )
static

Returns the BOS/EOS (Beginning/End of Sequence) entry.

Returns
The BOS/EOS entry.

◆ cost()

constexpr int tetengo::lattice::entry_view::cost ( ) const
inlineconstexpr

Returns the cost.

Returns
The cost.

◆ p_key()

constexpr const input * tetengo::lattice::entry_view::p_key ( ) const
inlineconstexpr

Returns the pointer to the key.

Returns
The pointer to the key.

◆ value()

constexpr const std::any * tetengo::lattice::entry_view::value ( ) const
inlineconstexpr

Returns the value.

Returns
The value.

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