Vaucanson  1.4.1
aut_to_exp.hh
Go to the documentation of this file.
1 // aut_to_exp.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, 2008, 2011 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_AUT_TO_EXP_HH
18 # define VCSN_ALGORITHMS_AUT_TO_EXP_HH
19 
32 // INTERFACE: Exp aut_to_exp(const GenAutomaton& a) { return vcsn::aut_to_exp(*a); }
33 // INTERFACE: Exp aut_to_exp(const GenAutomaton& a, const vcsn::DMChooser& b) { return vcsn::aut_to_exp(*a, b); }
34 // INTERFACE: Exp aut_to_exp(const GenAutomaton& a, const vcsn::HChooser& b) { return vcsn::aut_to_exp(*a, b); }
35 // INTERFACE: Exp aut_to_exp(const GenAutomaton& a, const vcsn::DefaultChooser& b) { return vcsn::aut_to_exp(*a, b); }
36 
37 # include <vaucanson/design_pattern/design_pattern.hh>
38 # include <vaucanson/automata/concept/automata_base.hh>
39 
40 namespace vcsn {
41 
59  template<typename A, typename AI>
60  typename Element<A, AI>::series_set_elt_t
61  aut_to_exp(const Element<A, AI>& a);
62 
80  template<typename A, typename AI, typename Chooser>
81  typename Element<A, AI>::series_set_elt_t
82  aut_to_exp(const Element<A, AI>& a, const Chooser& c);
83 
95  {
96  template <class Auto_>
97  typename Auto_::hstate_t
98  operator()(const Auto_& a) const;
99  };
100 
107  {
111  template <class Auto_>
112  typename Auto_::hstate_t
113  operator()(const Auto_& a) const;
114  };
115 
116 
117  struct HChooser
118  {
119  template <class Auto_>
120  typename Auto_::hstate_t
121  operator()(const Auto_& a) const;
122  };
123 
130  struct DMChooser
131  {
135  template <class Auto_>
136  typename Auto_::hstate_t
137  operator()(const Auto_& a) const;
138  };
139 
149  {
150  typedef std::list<unsigned int> list_t;
151  public :
152  ListChooser(const list_t& l);
153 
154  template <class Auto_>
155  typename Auto_::hstate_t operator() (const Auto_& a);
156 
157  private :
158  list_t list_;
159  list_t::const_iterator pos_;
160  };
161 
162 } // vcsn
163 
164 # if !defined VCSN_USE_INTERFACE_ONLY && !defined VCSN_USE_LIB
165 # include <vaucanson/algorithms/aut_to_exp.hxx>
166 # endif // VCSN_USE_INTERFACE_ONLY
167 
168 #endif // ! VCSN_ALGORITHMS_AUT_TO_EXP_HH