Vcsn  2.0
Be Rational
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
constant-term.cc
Go to the documentation of this file.
1 #include <vcsn/dyn/automaton.hh>
3 #include <vcsn/dyn/algos.hh>
5 
6 namespace vcsn
7 {
8  namespace dyn
9  {
10  /*---------------------.
11  | constant_term(exp). |
12  `---------------------*/
13  REGISTER_DEFINE(constant_term);
14 
15  weight
17  {
18  return detail::constant_term_registry().call(e);
19  }
20  }
21 }
std::shared_ptr< const detail::weight_base > weight
Definition: fwd.hh:82
std::shared_ptr< detail::ratexp_base > ratexp
Definition: fwd.hh:64
weight constant_term(const ratexp &e)
The weight associated to the empty word in e.