Awali
Another Weighted Automata library
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes
awali::sttc::f2 Class Reference

The field F2. More...

#include <f2.hh>

Public Types

using finite_t = bool
 
using self_type = f2
 
using value_t = bool
 

Public Member Functions

std::ostream & print_set (std::ostream &o, const std::string &format="text") const
 
template<unsigned version = version::fsm_json>
json::node_tto_json () const
 
template<unsigned version = version::fsm_json>
value_t value_from_json (json::node_t const *p) const
 
template<unsigned version = version::fsm_json>
json::node_tvalue_to_json (value_t v) const
 
std::string vname (bool=true) const
 

Static Public Member Functions

static value_t add (const value_t l, const value_t r)
 
static value_t conv (self_type, value_t v)
 
static value_t conv (std::istream &stream)
 
static bool equals (const value_t l, const value_t r)
 
static size_t hash (value_t v)
 
static constexpr bool is_commutative_semiring ()
 
static bool is_one (const value_t v)
 
constexpr static bool is_special (value_t)
 
static bool is_zero (const value_t v)
 
static value_t ldiv (const value_t l, const value_t r)
 
static bool less_than (value_t lhs, value_t rhs)
 Whether lhs < rhs. More...
 
static f2 make (std::istream &is)
 Build from the description in is. More...
 
static value_t mul (const value_t l, const value_t r)
 
static value_t one ()
 
static value_t parse (const std::string &s, size_t &p)
 
static std::ostream & print (const value_t v, std::ostream &o, const std::string &="text")
 
static value_t rdiv (const value_t l, const value_t r)
 
static constexpr bool show_one ()
 
static std::string sname ()
 
static value_t star (const value_t v)
 
static constexpr star_status_t star_status ()
 
static value_t sub (const value_t l, const value_t r)
 
static value_t transpose (const value_t v)
 
static value_t zero ()
 

Static Public Attributes

static const finite_t finite =true
 

Detailed Description

The field F2.

The type of values is bool.

Member Typedef Documentation

◆ finite_t

◆ self_type

◆ value_t

Member Function Documentation

◆ add()

static value_t awali::sttc::f2::add ( const value_t  l,
const value_t  r 
)
static

◆ conv() [1/2]

static value_t awali::sttc::f2::conv ( self_type  ,
value_t  v 
)
static

◆ conv() [2/2]

static value_t awali::sttc::f2::conv ( std::istream &  stream)
static

◆ equals()

static bool awali::sttc::f2::equals ( const value_t  l,
const value_t  r 
)
static

◆ hash()

static size_t awali::sttc::f2::hash ( value_t  v)
static

◆ is_commutative_semiring()

static constexpr bool awali::sttc::f2::is_commutative_semiring ( )
staticconstexpr

◆ is_one()

static bool awali::sttc::f2::is_one ( const value_t  v)
static

◆ is_special()

constexpr static bool awali::sttc::f2::is_special ( value_t  )
staticconstexpr

◆ is_zero()

static bool awali::sttc::f2::is_zero ( const value_t  v)
static

◆ ldiv()

static value_t awali::sttc::f2::ldiv ( const value_t  l,
const value_t  r 
)
static

◆ less_than()

static bool awali::sttc::f2::less_than ( value_t  lhs,
value_t  rhs 
)
static

Whether lhs < rhs.

◆ make()

static f2 awali::sttc::f2::make ( std::istream &  is)
static

Build from the description in is.

◆ mul()

static value_t awali::sttc::f2::mul ( const value_t  l,
const value_t  r 
)
static

◆ one()

static value_t awali::sttc::f2::one ( )
static

◆ parse()

static value_t awali::sttc::f2::parse ( const std::string &  s,
size_t &  p 
)
static

◆ print()

static std::ostream& awali::sttc::f2::print ( const value_t  v,
std::ostream &  o,
const std::string &  = "text" 
)
static

◆ print_set()

std::ostream& awali::sttc::f2::print_set ( std::ostream &  o,
const std::string &  format = "text" 
) const

◆ rdiv()

static value_t awali::sttc::f2::rdiv ( const value_t  l,
const value_t  r 
)
static

◆ show_one()

static constexpr bool awali::sttc::f2::show_one ( )
staticconstexpr

◆ sname()

static std::string awali::sttc::f2::sname ( )
static

◆ star()

static value_t awali::sttc::f2::star ( const value_t  v)
static

◆ star_status()

static constexpr star_status_t awali::sttc::f2::star_status ( )
staticconstexpr

◆ sub()

static value_t awali::sttc::f2::sub ( const value_t  l,
const value_t  r 
)
static

◆ to_json()

template<unsigned version = version::fsm_json>
json::node_t* awali::sttc::f2::to_json ( ) const

◆ transpose()

static value_t awali::sttc::f2::transpose ( const value_t  v)
static

◆ value_from_json()

template<unsigned version = version::fsm_json>
value_t awali::sttc::f2::value_from_json ( json::node_t const *  p) const

◆ value_to_json()

template<unsigned version = version::fsm_json>
json::node_t* awali::sttc::f2::value_to_json ( value_t  v) const

◆ vname()

std::string awali::sttc::f2::vname ( bool  = true) const

◆ zero()

static value_t awali::sttc::f2::zero ( )
static

Field Documentation

◆ finite

const finite_t awali::sttc::f2::finite =true
static

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