generalized.hh

00001 // generalized.hh: this file is part of the Vaucanson project.
00002 //
00003 // Vaucanson, a generic library for finite state machines.
00004 //
00005 // Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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_AUTOMATA_IMPLEMENTATION_GENERALIZED_HH
00018 # define VCSN_AUTOMATA_IMPLEMENTATION_GENERALIZED_HH
00019 
00020 # include <map>
00021 # include <vaucanson/automata/concept/automata.hh>
00022 # include <vaucanson/automata/concept/tags.hh>
00023 # include <vaucanson/automata/concept/copy.hh>
00024 # include <vaucanson/algebra/concept/series_base.hh>
00025 # include <vaucanson/algebra/implementation/series/generalized.hh>
00026 # include <vaucanson/algebra/implementation/series/rat/exp.hh>
00027 # include <vaucanson/algebra/implementation/series/krat.hh>
00028 # include <vaucanson/automata/implementation/graph.hh>
00029 
00030 
00031 namespace vcsn {
00032 
00033   /*----------------------.
00034   | Generalized automaton |
00035   `----------------------*/
00036   template <class Auto_>
00037   struct generalized_traits
00038   {
00039     // FIXME: static check on the concept of automaton
00040     typedef typename Auto_::series_set_t                series_set_t;
00041     typedef typename series_set_t::monoid_t             monoid_t;
00042     typedef typename Auto_::series_set_elt_t            series_set_elt_t;
00043     typedef typename series_set_elt_t::monoid_elt_t     monoid_elt_t;
00044     typedef typename monoid_elt_t::value_t              monoid_elt_value_t;
00045     typedef typename series_set_elt_t::semiring_elt_t   semiring_elt_t;
00046     typedef typename semiring_elt_t::value_t            semiring_elt_value_t;
00047     typedef typename Auto_::value_t::geometry_t         geometry_t;
00048 
00049     typedef vcsn::Element
00050     <vcsn::Automata<series_set_t>,
00051      Graph<labels_are_series,
00052            monoid_elt_value_t,
00053            semiring_elt_value_t,
00054            rat::exp<monoid_elt_value_t, semiring_elt_value_t>,
00055            typename monoid_t::letter_t,
00056            NoTag,
00057            geometry_t>
00058     > automaton_t;
00059   };
00060 
00061 
00062   template <class Auto_>
00063   typename generalized_traits<Auto_>::automaton_t
00064   generalized(const Auto_& from);
00065 
00066 } // vcsn
00067 
00068 
00069 # if !defined VCSN_USE_INTERFACE_ONLY || defined VCSN_USE_LIB
00070 # include <vaucanson/automata/implementation/generalized.hxx>
00071 #endif // VCSN_USE_INTERFACE_ONLY
00072 
00073 
00074 #endif // ! VCSN_AUTOMATA_IMPLEMENTATION_GENERALIZED_HH

Generated on Sun Jul 29 19:35:19 2007 for Vaucanson by  doxygen 1.5.2