Vaucanson  1.4.1
reduce.hh
Go to the documentation of this file.
1 // reduce.hh: this file is part of the Vaucanson project.
2 //
3 // Vaucanson, a generic library for finite state machines.
4 //
5 // Copyright (C) 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 
18 #ifndef VCSN_ALGORITHMS_REDUCE_HH
19 # define VCSN_ALGORITHMS_REDUCE_HH
20 
21 # include <vaucanson/design_pattern/design_pattern.hh>
23 
34 // INTERFACE: Automaton reduce(const Automaton& a, vcsn::misc::direction_type dir) { return vcsn::reduce(*a); }
35 
36 // INTERFACE: Automaton semi_reduce(const Automaton& a) { return vcsn::semi_reduce(*a); }
37 
38 namespace vcsn {
39 
59  template<typename A, typename AI>
60  Element<A, AI>
61  reduce(const Element<A, AI>& a, misc::direction_type dir = misc::right_left);
62 
82  template<typename A, typename AI>
83  Element<A, AI>
84  semi_reduce(const Element<A, AI>& a);
85 
86 } // vcsn
87 
88 # if !defined VCSN_USE_INTERFACE_ONLY && !defined VCSN_USE_LIB
89 # include <vaucanson/algorithms/reduce.hxx>
90 # endif // VCSN_USE_INTERFACE_ONLY
91 
92 #endif // !VCSN_ALGORITHMS_REDUCE_HH //