Vaucanson  1.4.1
shortest.hh
Go to the documentation of this file.
1 // shortest.hh: this file is part of the Vaucanson project.
2 //
3 // Vaucanson, a generic library for finite state machines.
4 //
5 // Copyright (C) 2008, 2009, 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 #ifndef VCSN_ALGORITHMS_SHORTEST_HH
18 # define VCSN_ALGORITHMS_SHORTEST_HH
19 
34 // INTERFACE: Automaton::monoid_elt_t shortest(const Automaton& a) { return vcsn::shortest(*a); }
35 // INTERFACE: bool shortest(const Automaton& a, Automaton::monoid_elt_t& w) { return vcsn::shortest(*a, w); }
36 
37 // INTERFACE: void enumerate(const Automaton& a, unsigned ml, std::list<Automaton::monoid_elt_t>& wl) { vcsn::enumerate(*a, ml, wl); }
38 
39 #include <list>
40 
41 namespace vcsn
42 {
59  template<typename Automaton>
60  typename Automaton::monoid_elt_t
61  shortest(const Automaton& autom);
62 
77  template<typename Automaton, typename MonoidElt>
78  bool
79  shortest(const Automaton& autom, MonoidElt& word);
80 
97  template<typename Automaton, typename MonoidElt, typename Alloc>
98  void
99  enumerate(const Automaton& autom, unsigned max_length,
100  std::list<MonoidElt, Alloc>& word_list);
101 
104 } // ! vcsn
105 
106 # if !defined VCSN_USE_INTERFACE_ONLY && !defined VCSN_USE_LIB
107 # include <vaucanson/algorithms/shortest.hxx>
108 # endif // VCSN_USE_INTERFACE_ONLY
109 #endif // ! VCSN_ALGORITHMS_SHORTEST_HH