17 template <
typename Derived,
typename Value>
26 return static_cast<const self_t&
>(*this);
74 return std::numeric_limits<value_t>::max();
86 return std::numeric_limits<value_t>::max();
145 conv(std::istream& is,
bool =
true)
148 if (is.peek() ==
'o')
155 else if (!(is >> res))
static bool less(value_t lhs, value_t rhs)
Whether lhs < rhs.
static bool is_zero(const value_t v)
value_t star(const value_t v) const
static value_t conv(std::istream &is, bool=true)
static constexpr bool is_special(value_t)
An input/output format for valuesets.
value_t rdivide(const value_t l, const value_t r) const
weightset_mixin< detail::r_impl > r
void require(Bool b, Args &&...args)
If b is not verified, raise an error with args as message.
static bool is_one(const value_t v)
Provide a variadic mul on top of a binary mul(), and one().
static constexpr star_status_t star_status()
auto hash_value(const T &v) -> decltype(std::hash< T >
Following the naming convention of Boost.
static bool equal(const value_t l, const value_t r)
#define VCSN_REQUIRE(Cond,...)
A macro similar to require.
value_t ldivide(const value_t l, const value_t r) const
static value_t conv(b, b::value_t v)
static value_t transpose(const value_t v)
static constexpr bool show_one()
static constexpr bool is_commutative()
static std::ostream & print(const value_t v, std::ostream &o=std::cout, format fmt={})
std::ostream & str_escape(std::ostream &os, const std::string &str, const char *special=nullptr)
Output a string, escaping special characters.
ATTRIBUTE_NORETURN void fail_reading(std::istream &is, Args &&...args)
Throw an exception after failing to read from is.
static size_t hash(value_t v)
static value_t mul(const value_t l, const value_t r)
ATTRIBUTE_NORETURN void raise_not_starrable(const WeightSet &ws, const typename WeightSet::value_t &w)
This value is not starrable.
static value_t add(const value_t l, const value_t r)
static constexpr bool is_idempotent()
valid iff proper succeeds.