Vcsn  2.0
Be Rational
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
vcsn::dyn::detail::weight_wrapper< T > Class Template Reference

Aggregate a weight and its weightset. More...

#include <fwd.hh>

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

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 weight_t &w, const weightset_t &ws)
 
virtual std::string vname (bool full=true) const override
 A description of the weight type. More...
 
const weight_t weight () const
 
const weightset_tweightset () const
 
- Public Member Functions inherited from vcsn::dyn::detail::weight_base
template<typename WeightSet >
weight_wrapper< WeightSet > & as ()
 Extract wrapped typed weight. More...
 
template<typename WeightSet >
const weight_wrapper< WeightSet > & as () const
 Extract wrapped typed weight. More...
 

Protected Attributes

const weight_t weight_
 The weight. More...
 
const weightset_t weightset_
 The weight set. More...
 

Detailed Description

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

Aggregate a weight and its weightset.

Definition at line 80 of file fwd.hh.

Member Typedef Documentation

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

Definition at line 46 of file weight.hh.

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

Definition at line 47 of file weight.hh.

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

Definition at line 45 of file weight.hh.

Constructor & Destructor Documentation

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

Definition at line 48 of file weight.hh.

Member Function Documentation

template<typename T>
virtual std::string vcsn::dyn::detail::weight_wrapper< T >::vname ( bool  full = true) const
inlineoverridevirtual

A description of the weight type.

Parameters
fullwhether to include the genset. if false, same as sname.

Implements vcsn::dyn::detail::weight_base.

Definition at line 53 of file weight.hh.

References vcsn::dyn::detail::weight_wrapper< T >::weightset().

Here is the call graph for this function:

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

Definition at line 58 of file weight.hh.

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

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

Member Data Documentation

template<typename T>
const weight_t vcsn::dyn::detail::weight_wrapper< T >::weight_
protected

The weight.

Definition at line 70 of file weight.hh.

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

template<typename T>
const weightset_t vcsn::dyn::detail::weight_wrapper< T >::weightset_
protected

The weight set.

Definition at line 72 of file weight.hh.

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


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