Vcsn  2.3
Be Rational
vcsn::detail::evaluator< Aut > Class Template Reference

#include <eval.hh>

Collaboration diagram for vcsn::detail::evaluator< Aut >:

Public Member Functions

 evaluator (const automaton_t &a)
 
weight_t operator() (const word_t &word) const
 

Private Types

using automaton_t = Aut
 
using state_t = state_t_of< automaton_t >
 
using word_t = word_t_of< automaton_t >
 
using weightset_t = weightset_t_of< automaton_t >
 
using weight_t = typename weightset_t::value_t
 
using weights_t = std::vector< weight_t >
 

Private Attributes

automaton_t aut_
 
const weightset_tws_ = *aut_->weightset()
 

Detailed Description

template<Automaton Aut>
class vcsn::detail::evaluator< Aut >

Definition at line 18 of file eval.hh.

Member Typedef Documentation

template<Automaton Aut>
using vcsn::detail::evaluator< Aut >::automaton_t = Aut
private

Definition at line 23 of file eval.hh.

template<Automaton Aut>
using vcsn::detail::evaluator< Aut >::state_t = state_t_of<automaton_t>
private

Definition at line 24 of file eval.hh.

template<Automaton Aut>
using vcsn::detail::evaluator< Aut >::weight_t = typename weightset_t::value_t
private

Definition at line 27 of file eval.hh.

template<Automaton Aut>
using vcsn::detail::evaluator< Aut >::weights_t = std::vector<weight_t>
private

Definition at line 30 of file eval.hh.

template<Automaton Aut>
using vcsn::detail::evaluator< Aut >::weightset_t = weightset_t_of<automaton_t>
private

Definition at line 26 of file eval.hh.

template<Automaton Aut>
using vcsn::detail::evaluator< Aut >::word_t = word_t_of<automaton_t>
private

Definition at line 25 of file eval.hh.

Constructor & Destructor Documentation

template<Automaton Aut>
vcsn::detail::evaluator< Aut >::evaluator ( const automaton_t a)
inline

Definition at line 33 of file eval.hh.

Member Function Documentation

template<Automaton Aut>
weight_t vcsn::detail::evaluator< Aut >::operator() ( const word_t word) const
inline

Definition at line 37 of file eval.hh.

References vcsn::detail::evaluator< Aut >::aut_, vcsn::detail::out(), vcsn::detail::states_size(), and vcsn::detail::evaluator< Aut >::ws_.

Here is the call graph for this function:

Member Data Documentation

template<Automaton Aut>
automaton_t vcsn::detail::evaluator< Aut >::aut_
private

Definition at line 91 of file eval.hh.

Referenced by vcsn::detail::evaluator< Aut >::operator()().

template<Automaton Aut>
const weightset_t& vcsn::detail::evaluator< Aut >::ws_ = *aut_->weightset()
private

Definition at line 92 of file eval.hh.

Referenced by vcsn::detail::evaluator< Aut >::operator()().


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