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

An entry. More...

#include <entry.hpp>

Public Member Functions

 entry (std::unique_ptr< input > &&p_key, std::any value, int cost)
 Creates an entry.
 
 entry (const entry_view &view)
 Creates an entry.
 
 entry (const entry &another)
 Copies an entry.
 
 entry (entry &&another)
 Moves an entry.
 
const inputp_key () const
 Returns the pointer to the key.
 
const std::any & value () const
 Returns the value.
 
int cost () const
 Returns the cost.
 

Static Public Member Functions

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

Detailed Description

An entry.

Constructor & Destructor Documentation

◆ entry() [1/4]

tetengo::lattice::entry::entry ( std::unique_ptr< input > &&  p_key,
std::any  value,
int  cost 
)

Creates an entry.

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

◆ entry() [2/4]

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

Creates an entry.

Parameters
viewAn entry view.

◆ entry() [3/4]

tetengo::lattice::entry::entry ( const entry another)

Copies an entry.

Parameters
anotherAnother entry.

◆ entry() [4/4]

tetengo::lattice::entry::entry ( entry &&  another)

Moves an entry.

Parameters
anotherAnother entry.

Member Function Documentation

◆ bos_eos()

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

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

Returns
The BOS/EOS entry.

◆ cost()

int tetengo::lattice::entry::cost ( ) const

Returns the cost.

Returns
The cost.

◆ p_key()

const input * tetengo::lattice::entry::p_key ( ) const

Returns the pointer to the key.

Returns
The pointer to the key.

◆ value()

const std::any & tetengo::lattice::entry::value ( ) const

Returns the value.

Returns
The value.

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