Vcsn  2.2
Be Rational
vcsn::dyn::detail::weight_wrapper< WeightSet > Class Template Reference

Aggregate a weight and its weightset. More...

#include <fwd.hh>

Inheritance diagram for vcsn::dyn::detail::weight_wrapper< WeightSet >:
Collaboration diagram for vcsn::dyn::detail::weight_wrapper< WeightSet >:

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_tweightset () const
 
const weight_t weight () const
 
- Public Member Functions inherited from vcsn::dyn::detail::weight_base
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...
 

Detailed Description

template<typename WeightSet>
class vcsn::dyn::detail::weight_wrapper< WeightSet >

Aggregate a weight and its weightset.

Definition at line 86 of file fwd.hh.

Member Typedef Documentation

template<typename WeightSet >
using vcsn::dyn::detail::weight_wrapper< WeightSet >::super_t = weight_base

Definition at line 43 of file weight.hh.

template<typename WeightSet >
using vcsn::dyn::detail::weight_wrapper< WeightSet >::weight_t = typename weightset_t::value_t

Definition at line 44 of file weight.hh.

template<typename WeightSet >
using vcsn::dyn::detail::weight_wrapper< WeightSet >::weightset_t = WeightSet

Definition at line 42 of file weight.hh.

Constructor & Destructor Documentation

template<typename WeightSet >
vcsn::dyn::detail::weight_wrapper< WeightSet >::weight_wrapper ( const weightset_t ws,
const weight_t w 
)
inline

Definition at line 45 of file weight.hh.

Member Function Documentation

template<typename WeightSet >
virtual symbol vcsn::dyn::detail::weight_wrapper< WeightSet >::vname ( ) const
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().

Here is the call graph for this function:

template<typename WeightSet >
const weight_t vcsn::dyn::detail::weight_wrapper< WeightSet >::weight ( ) const
inline

Definition at line 60 of file weight.hh.

References vcsn::dyn::detail::weight_wrapper< WeightSet >::weight_.

template<typename WeightSet >
const weightset_t& vcsn::dyn::detail::weight_wrapper< WeightSet >::weightset ( ) const
inline

Member Data Documentation

template<typename WeightSet >
const weight_t vcsn::dyn::detail::weight_wrapper< WeightSet >::weight_
private

The weight.

Definition at line 69 of file weight.hh.

Referenced by vcsn::dyn::detail::weight_wrapper< WeightSet >::weight().

template<typename WeightSet >
const weightset_t vcsn::dyn::detail::weight_wrapper< WeightSet >::weightset_
private

The weight set.

Definition at line 67 of file weight.hh.

Referenced by vcsn::dyn::detail::weight_wrapper< WeightSet >::weightset().


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