![]() |
Vcsn
2.1
Be Rational
|
Aggregate a weight and its weightset. More...
#include <fwd.hh>
Public Types | |
using | weightset_t = WeightSet |
using | super_t = weight_base |
using | weight_t = typename weightset_t::value_t |
Public Member Functions | |
weight_wrapper (const weightset_t &ws, const weight_t &w) | |
virtual symbol | vname () const override |
A description of the weight type. More... | |
const weightset_t & | weightset () const |
const weight_t | weight () const |
![]() | |
template<typename WeightSet > | |
auto & | as () |
Extract wrapped typed weight. More... | |
template<typename WeightSet > | |
auto & | as () const |
Extract wrapped typed weight. More... | |
Private Attributes | |
const weightset_t | weightset_ |
The weight set. More... | |
const weight_t | weight_ |
The weight. More... | |
Aggregate a weight and its weightset.
using vcsn::dyn::detail::weight_wrapper< WeightSet >::super_t = weight_base |
using vcsn::dyn::detail::weight_wrapper< WeightSet >::weight_t = typename weightset_t::value_t |
using vcsn::dyn::detail::weight_wrapper< WeightSet >::weightset_t = WeightSet |
|
inline |
|
inlineoverridevirtual |
A description of the weight type.
Implements vcsn::dyn::detail::weight_base.
Definition at line 50 of file weight.hh.
References vcsn::dyn::detail::weight_wrapper< WeightSet >::weightset().
|
inline |
Definition at line 60 of file weight.hh.
References vcsn::dyn::detail::weight_wrapper< WeightSet >::weight_.
|
inline |
Definition at line 55 of file weight.hh.
References vcsn::dyn::detail::weight_wrapper< WeightSet >::weightset_.
Referenced by vcsn::dyn::detail::weight_wrapper< WeightSet >::vname().
|
private |
The weight.
Definition at line 69 of file weight.hh.
Referenced by vcsn::dyn::detail::weight_wrapper< WeightSet >::weight().
|
private |
The weight set.
Definition at line 67 of file weight.hh.
Referenced by vcsn::dyn::detail::weight_wrapper< WeightSet >::weightset().