ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
Loading...
Searching...
No Matches
semiring::best_path_t Struct Reference

A cost and a derivation of that cost, as a word of labels. More...

#include "BestPath.h"

Public Member Functions

bool is_zero () const
 Whether this is \(\mathbb{0}\).
bool operator== (const best_path_t &o) const
 Equality of the cost and the word.
bool operator!= (const best_path_t &o) const
 Inequality.

Public Attributes

double cost = std::numeric_limits<double>::infinity()
 +∞ for 𝟘
std::vector< std::string > word
 Its labels.

Detailed Description

A cost and a derivation of that cost, as a word of labels.

Definition at line 53 of file BestPath.h.

Member Function Documentation

◆ is_zero()

bool semiring::best_path_t::is_zero ( ) const
inline

Whether this is \(\mathbb{0}\).

Definition at line 58 of file BestPath.h.

Here is the caller graph for this function:

◆ operator!=()

bool semiring::best_path_t::operator!= ( const best_path_t & o) const
inline

Inequality.

Definition at line 66 of file BestPath.h.

◆ operator==()

bool semiring::best_path_t::operator== ( const best_path_t & o) const
inline

Equality of the cost and the word.

Definition at line 62 of file BestPath.h.

Member Data Documentation

◆ cost

double semiring::best_path_t::cost = std::numeric_limits<double>::infinity()

+∞ for 𝟘

Definition at line 54 of file BestPath.h.

◆ word

std::vector<std::string> semiring::best_path_t::word

Its labels.

Definition at line 55 of file BestPath.h.


The documentation for this struct was generated from the following file:
  • /home/pierre/git/software/provsql/src/semiring/BestPath.h