Vaucanson 1.4
normalized_composition.hh
Go to the documentation of this file.
00001 // normalized_composition.hh: this file is part of the Vaucanson project.
00002 //
00003 // Vaucanson, a generic library for finite state machines.
00004 //
00005 // Copyright (C) 2005, 2006, 2008 The Vaucanson Group.
00006 //
00007 // This program is free software; you can redistribute it and/or
00008 // modify it under the terms of the GNU General Public License
00009 // as published by the Free Software Foundation; either version 2
00010 // of the License, or (at your option) any later version.
00011 //
00012 // The complete GNU General Public Licence Notice can be found as the
00013 // `COPYING' file in the root directory.
00014 //
00015 // The Vaucanson Group consists of people listed in the `AUTHORS' file.
00016 //
00017 #ifndef VCSN_ALGORITHMS_NORMALIZED_COMPOSITION_HH
00018 # define VCSN_ALGORITHMS_NORMALIZED_COMPOSITION_HH
00019 
00020 # include <vaucanson/automata/concept/automata_base.hh>
00021 
00036 // FIXME: The return type must be ComposedAutomaton (but we need a trait, composed_traits_automaton,
00037 // wich will check if the two type are composable)
00038 // Do a1 and a2 need to be the same type?
00039 // INTERFACE: Automaton u_compose(const Automaton& a1, const Automaton& a2) { return vcsn::u_compose(*a1, *a2); }
00040 
00041 namespace vcsn {
00042 
00055   template <typename S, typename T>
00056   void
00057   compose(const Element<S, T>& lhs,
00058           const Element<S, T>& rhs,
00059           Element<S, T>& ret);
00060 
00061 
00062 
00071   template <typename S, typename T>
00072   Element<S, T>
00073   compose(const Element<S, T>& lhs,
00074           const Element<S, T>& rhs);
00075 
00076 
00086   template <typename S, typename T>
00087   void
00088   u_compose(const Element<S, T>& lhs,
00089             const Element<S, T>& rhs,
00090             Element<S, T>& ret);
00091 
00100   template <typename S, typename T>
00101   Element<S, T>
00102   u_compose(const Element<S, T>& lhs,
00103             const Element<S, T>& rhs);
00104 
00107 } // End of namespace vcsn.
00108 
00109 # if !defined VCSN_USE_INTERFACE_ONLY && !defined VCSN_USE_LIB
00110 #  include <vaucanson/algorithms/normalized_composition.hxx>
00111 # endif // VCSN_USE_INTERFACE_ONLY
00112 
00113 
00114 #endif // ! VCSN_ALGORITHMS_NORMALIZED_COMPOSITION_HH