Vaucanson  1.4.1
evaluation_rw.hxx
1 // evaluation_rw.hxx: this file is part of the Vaucanson project.
2 //
3 // Vaucanson, a generic library for finite state machines.
4 //
5 // Copyright (C) 2009 The Vaucanson Group.
6 //
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License
9 // as published by the Free Software Foundation; either version 2
10 // of the License, or (at your option) any later version.
11 //
12 // The complete GNU General Public Licence Notice can be found as the
13 // `COPYING' file in the root directory.
14 //
15 // The Vaucanson Group consists of people listed in the `AUTHORS' file.
16 //
17 #ifndef VCSN_ALGORITHMS_EVALUATION_RW_HXX
18 # define VCSN_ALGORITHMS_EVALUATION_RW_HXX
19 
21 
26 
27 namespace vcsn
28 {
29  template <typename SA, typename ST, typename SRET,
30  typename Auto_t, typename Trans_t, typename Ret_t>
31  void
32  do_evaluation_rw(const AutomataBase<SA>&,
33  const TransducerBase<ST>&,
34  const AutomataBase<SRET>&,
35  const Auto_t& a,
36  const Trans_t& t,
37  Ret_t& ret)
38  {
39  image(trim(product(t, extension(a, t))), ret);
40  }
41 
42  template<typename SA, typename TA, typename ST,
43  typename TT, typename SRET, typename TRET>
44  void
47  {
48  do_evaluation_rw(a.structure(), t.structure(), ret.structure(), a, t, ret);
49  }
50 
51 } // ! vcsn
52 
53 #endif // ! VCSN_ALGORITHMS_EVALUATION_RW_HXX