Vaucanson  1.4.1
sub_automaton.hh
Go to the documentation of this file.
1 // sub_automaton.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_SUB_AUTOMATON_HH
18 # define VCSN_ALGORITHMS_SUB_AUTOMATON_HH
19 
33 // INTERFACE: Automaton sub_automaton(const Automaton& a, const HList& s, bool c) { return vcsn::sub_automaton(*a, s, c); }
34 
35 // INTERFACE: void sub_automaton_here(Automaton& a, const HList& s, bool c) { return vcsn::sub_automaton_here(*a, s, c); }
36 
37 # include <vaucanson/design_pattern/design_pattern.hh>
38 
39 namespace vcsn {
40 
41 
55  template<typename A, typename AI, typename HStatesSet>
56  Element<A, AI>
57  sub_automaton(const Element<A, AI>& a, const HStatesSet& s,
58  bool check_states =
59 #if defined VCSN_NDEBUG
60  false
61 #else
62  true
63 #endif
64  );
65 
76  template<typename A, typename AI, typename HStatesSet>
77  void
78  sub_automaton_here(Element<A, AI>& a,
79  const HStatesSet& s,
80  bool check_states =
81 #if defined VCSN_NDEBUG
82  false
83 #else
84  true
85 #endif
86  );
87 
90 } // vcsn
91 
92 # if !defined VCSN_USE_INTERFACE_ONLY && !defined VCSN_USE_LIB
93 # include <vaucanson/algorithms/sub_automaton.hxx>
94 # endif // VCSN_USE_INTERFACE_ONLY
95 
96 #endif // ! VCSN_ALGORITHMS_SUB_AUTOMATON_HH