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

A cap. More...

#include <n_best_iterator.hpp>

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

Public Member Functions

 cap (std::vector< node > tail_path, int tail_path_cost, int whole_path_cost)
 Creates a cap.
 
const std::vector< node > & tail_path () const
 Returns the tail path.
 
int tail_path_cost () const
 Returns the tail path cost.
 
int whole_path_cost () const
 Returns the whole path cost.
 

Friends

bool operator< (const cap &one, const cap &another)
 Returns true if one is less than another.
 

Detailed Description

A cap.

Constructor & Destructor Documentation

◆ cap()

tetengo::lattice::cap::cap ( std::vector< node tail_path,
int  tail_path_cost,
int  whole_path_cost 
)

Creates a cap.

Parameters
tail_pathA tail path.
tail_path_costA tail path cost.
whole_path_costA whole path cost.

Member Function Documentation

◆ tail_path()

const std::vector< node > & tetengo::lattice::cap::tail_path ( ) const

Returns the tail path.

Returns
The tail path.

◆ tail_path_cost()

int tetengo::lattice::cap::tail_path_cost ( ) const

Returns the tail path cost.

Returns
The tail path cost.

◆ whole_path_cost()

int tetengo::lattice::cap::whole_path_cost ( ) const

Returns the whole path cost.

Returns
The whole path cost.

Friends And Related Symbol Documentation

◆ operator<

bool operator< ( const cap one,
const cap another 
)
friend

Returns true if one is less than another.

Parameters
oneOne cap.
anotherAnother cap.
Return values
trueWhen one is less than another.
falseOtherwise.

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