Vcsn  2.0
Be Rational
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
eval.cc
Go to the documentation of this file.
1 #include <vcsn/dyn/automaton.hh>
2 #include <vcsn/dyn/label.hh>
3 #include <vcsn/algos/eval.hh>
4 #include <vcsn/dyn/algos.hh>
6 
7 namespace vcsn
8 {
9  namespace dyn
10  {
11  REGISTER_DEFINE(eval);
12  weight
13  eval(const automaton& aut, const label& s)
14  {
15  return detail::eval_registry().call(aut, s);
16  }
17  }
18 }
std::shared_ptr< detail::automaton_base > automaton
Definition: automaton.hh:71
std::shared_ptr< const detail::weight_base > weight
Definition: fwd.hh:82
std::shared_ptr< const detail::label_base > label
Definition: fwd.hh:46
weight eval(const automaton &aut, const label &l)
Evaluate s on aut.
Definition: eval.cc:13