Vaucanson  1.4.1
normalized_composition.hh
Go to the documentation of this file.
1 // normalized_composition.hh: this file is part of the Vaucanson project.
2 //
3 // Vaucanson, a generic library for finite state machines.
4 //
5 // Copyright (C) 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_NORMALIZED_COMPOSITION_HH
18 # define VCSN_ALGORITHMS_NORMALIZED_COMPOSITION_HH
19 
20 # include <vaucanson/automata/concept/automata_base.hh>
21 
36 // FIXME: The return type must be ComposedAutomaton (but we need a trait, composed_traits_automaton,
37 // wich will check if the two type are composable)
38 // Do a1 and a2 need to be the same type?
39 // INTERFACE: Automaton u_compose(const Automaton& a1, const Automaton& a2) { return vcsn::u_compose(*a1, *a2); }
40 
41 namespace vcsn {
42 
55  template <typename S, typename T>
56  void
57  compose(const Element<S, T>& lhs,
58  const Element<S, T>& rhs,
59  Element<S, T>& ret);
60 
61 
62 
71  template <typename S, typename T>
72  Element<S, T>
73  compose(const Element<S, T>& lhs,
74  const Element<S, T>& rhs);
75 
76 
86  template <typename S, typename T>
87  void
88  u_compose(const Element<S, T>& lhs,
89  const Element<S, T>& rhs,
90  Element<S, T>& ret);
91 
100  template <typename S, typename T>
101  Element<S, T>
102  u_compose(const Element<S, T>& lhs,
103  const Element<S, T>& rhs);
104 
107 } // End of namespace vcsn.
108 
109 # if !defined VCSN_USE_INTERFACE_ONLY && !defined VCSN_USE_LIB
111 # endif // VCSN_USE_INTERFACE_ONLY
112 
113 
114 #endif // ! VCSN_ALGORITHMS_NORMALIZED_COMPOSITION_HH