- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

# sub_automaton.hh

Go to the documentation of this file.

    00001 // sub_automaton.hh: this file is part of the Vaucanson project.
    00002 //
    00003 // Vaucanson, a generic library for finite state machines.
    00004 //
    00005 // Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 The Vaucanson Group.
    00006 //
    00007 // This program is free software; you can redistribute it and/or
    00008 // modify it under the terms of the GNU General Public License
    00009 // as published by the Free Software Foundation; either version 2
    00010 // of the License, or (at your option) any later version.
    00011 //
    00012 // The complete GNU General Public Licence Notice can be found as the
    00013 // `COPYING' file in the root directory.
    00014 //
    00015 // The Vaucanson Group consists of people listed in the `AUTHORS' file.
    00016 //
    00017 #ifndef VCSN_ALGORITHMS_SUB_AUTOMATON_HH
    00018 # define VCSN_ALGORITHMS_SUB_AUTOMATON_HH
    00019
    00033 // INTERFACE: Automaton sub_automaton(const Automaton& a, const HList& s, bool c) { return vcsn::sub_automaton(*a, s, c); }
    00034 // INTERFACE: GenAutomaton sub_automaton(const GenAutomaton& a, const HList& s, bool c) { return vcsn::sub_automaton(*a, s, c); }
    00035
    00036 // INTERFACE: void sub_automaton_here(Automaton& a, const HList& s, bool c) { return vcsn::sub_automaton_here(*a, s, c); }
    00037 // INTERFACE: void sub_automaton_here(GenAutomaton& a, const HList& s, bool c) { return vcsn::sub_automaton_here(*a, s, c); }
    00038
    00039 # include <vaucanson/design_pattern/design_pattern.hh>
    00040
    00041 namespace vcsn {
    00042
    00043
    00057   template<typename A, typename T, typename StatesSet>
    00058   Element<A, T>
    00059   sub_automaton(const Element<A, T>& a, const StatesSet& s,
    00060                 bool check_states =
    00061 #if defined VCSN_NDEBUG
    00062                                     false
    00063 #else
    00064                                     true
    00065 #endif
    00066                 );
    00067
    00078   template<typename A, typename T, typename StatesSet>
    00079   void
    00080   sub_automaton_here(Element<A, T>& a,
    00081                      const StatesSet& s,
    00082                      bool check_states =
    00083 #if defined VCSN_NDEBUG
    00084                                     false
    00085 #else
    00086                                     true
    00087 #endif
    00088                      );
    00089
    00092 } // vcsn
    00093
    00094 # if !defined VCSN_USE_INTERFACE_ONLY && !defined VCSN_USE_LIB
    00095 #  include <vaucanson/algorithms/sub_automaton.hxx>
    00096 # endif // VCSN_USE_INTERFACE_ONLY
    00097
    00098 #endif // ! VCSN_ALGORITHMS_SUB_AUTOMATON_HH