Vaucanson  1.4.1
automata/generic_contexts/z_transducer_structures.hh
1 // z_transducer_structures.hh: this file is part of the Vaucanson project.
2 //
3 // Vaucanson, a generic library for finite state machines.
4 //
5 // Copyright (C) 2007, 2008, 2010 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 
18 /*
19  * CPP guard should not be inserted here as
20  * VCSN_GRAPH_IMPL could be changed.
21  */
22 
23 # include GRAPH_CONTEXT_HEADER_(z_automaton_structures.hh)
24 # include GRAPH_CONTEXT_HEADER_(boolean_automaton_structures.hh)
25 
26 # define AUTOMATON_CONTEXT z_automaton
27 # define VCSN_CONTEXT_NAMESPACE namespace z_transducer
28 
29 # include <vaucanson/contexts/char_letter.thh>
30 # include <vaucanson/contexts/dynamic_alphabet.thh>
31 # include <vaucanson/contexts/free_monoid.thh>
32 
33 namespace vcsn
34 {
35  namespace VCSN_GRAPH_IMPL
36  {
37  VCSN_CONTEXT_NAMESPACE
38  {
39  typedef AUTOMATON_CONTEXT::semiring_elt_t output_semiring_elt_t;
40  typedef output_semiring_elt_t::set_t output_semiring_t;
41  typedef output_semiring_elt_t::value_t output_semiring_elt_value_t;
42 
43  typedef AUTOMATON_CONTEXT::rat_exp_t output_series_set_elt_t;
44  typedef output_series_set_elt_t::set_t output_series_set_t;
45  typedef output_series_set_elt_t::value_t output_series_set_elt_value_t;
46  } // End of namespace VCSN_CONTEXT_NAMESPACE.
47  } // End of namespace VCSN_GRAPH_IMPL
48 } // namespace vcsn
49 
50 # include <vaucanson/contexts/ratseries_semiring.thh>
51 # include <vaucanson/contexts/generic_series.thh>
52 # include <vaucanson/contexts/generic_automaton_impl.thh>
53 # include <vaucanson/contexts/transducer.thh>
54 
55 namespace vcsn
56 {
57  namespace VCSN_GRAPH_IMPL
58  {
59  VCSN_CONTEXT_NAMESPACE
60  {
61  AUTOMATON_TYPES_EXACT(automaton_t);
62  AUTOMATON_FREEMONOID_TYPES_EXACT(automaton_t);
63 
64  typedef automaton_t::input_monoid_t::alphabet_t first_alphabet_t;
65  typedef automaton_t::output_monoid_t::alphabet_t second_alphabet_t;
66  } // End of namespace VCSN_CONTEXT_NAMESPACE
67  } // End of namespace VCSN_GRAPH_IMPL
68 } // End of namespace vcsn
69 
70 # include <vaucanson/contexts/transducer_maker.thh>
71 
72 # undef AUTOMATON_CONTEXT
73 # undef VCSN_CONTEXT_NAMESPACE
74