Vaucanson  1.4.1
trim.hh
Go to the documentation of this file.
1 // trim.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, 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_TRIM_HH
18 # define VCSN_ALGORITHMS_TRIM_HH
19 
30 // INTERFACE: HList useful_states(const Automaton& a) { return list_of_set(vcsn::useful_states(*a)); }
31 
32 // INTERFACE: Automaton trim(const Automaton& a) { return vcsn::trim(*a); }
33 
34 # include <vaucanson/design_pattern/design_pattern.hh>
35 # include <vaucanson/automata/concept/handlers.hh>
36 
37 # include <set>
38 
39 namespace vcsn {
40 
50  template<typename A, typename AI>
51  std::set<typename Element<A, AI>::hstate_t>
52  useful_states(const Element<A, AI>& a);
53 
59  template<typename A, typename AI>
60  Element<A, AI>
61  trim(const Element<A, AI>& a);
62 
64 
69  template<typename A, typename AI>
70  void
71  trim_here(Element<A, AI>& a);
72 
75 } // vcsn
76 
77 # if !defined VCSN_USE_INTERFACE_ONLY && !defined VCSN_USE_LIB
78 # include <vaucanson/algorithms/trim.hxx>
79 # endif // VCSN_USE_INTERFACE_ONLY
80 
81 #endif // ! VCSN_ALGORITHMS_TRIM_HH