Vaucanson  1.4.1
projection.hh
Go to the documentation of this file.
1 // projection.hh: this file is part of the Vaucanson project.
2 //
3 // Vaucanson, a generic library for finite state machines.
4 //
5 // Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2008 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_PROJECTION_HH
18 # define VCSN_ALGORITHMS_PROJECTION_HH
19 
29 // INTERFACE: void identity(const InputProjection& a, Automaton& b) { return vcsn::identity(*a, *b); }
30 // INTERFACE: void partial_erase(const InputProjection& a, Automaton& b) { return vcsn::identity(*a, *b); }
31 
32 # include <vaucanson/algebra/concept/freemonoid_product.hh>
33 # include <vaucanson/automata/concept/transducer.hh>
34 
35 namespace vcsn {
36 
39  template <typename auto_t, typename trans_t>
40  void
41  set_states(const trans_t&, auto_t&,
42  std::map<typename trans_t::hstate_t, typename auto_t::hstate_t>&);
43 
44  /*---------.
45  | Identity |
46  `---------*/
47 
51  template <typename S, typename S2, typename T, typename T2>
52  void
53  identity(const Element<S,T>& aut, Element<S2, T2>& res);
54 
55  /*--------------.
56  | Partial erase |
57  `--------------*/
58 
62  template <typename S, typename S2, typename T, typename T2>
63  void
64  partial_erase(const Element<S,T>& aut, Element<S2, T2>& res);
67 } // ! vcsn
68 
69 # if !defined VCSN_USE_INTERFACE_ONLY && !defined VCSN_USE_LIB
70 # include <vaucanson/algorithms/projection.hxx>
71 # endif // ! VCSN_USE_INTERFACE_ONLY
72 
73 #endif // ! VCSN_ALGORITHMS_PROJECTION_HH