00001 // accessible.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 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_ACCESSIBLE_HH 00018 # define VCSN_ALGORITHMS_ACCESSIBLE_HH 00019 00034 // INTERFACE: HList accessible_states(const Automaton& a) { return list_of_set(vcsn::accessible_states(*a)); } 00035 // INTERFACE: HList accessible_states(const GenAutomaton& a) { return list_of_set(vcsn::accessible_states(*a)); } 00036 00037 // INTERFACE: Automaton accessible(const Automaton& a) { return vcsn::accessible(*a); } 00038 // INTERFACE: GenAutomaton accessible(const GenAutomaton& a) { return vcsn::accessible(*a); } 00039 00040 // INTERFACE: void accessible_here(Automaton& a) { return vcsn::accessible_here(*a); } 00041 // INTERFACE: void accessible_here(GenAutomaton& a) { return vcsn::accessible_here(*a); } 00042 00043 // INTERFACE: HList coaccessible_states(const Automaton& a) { return list_of_set(vcsn::coaccessible_states(*a)); } 00044 // INTERFACE: HList coaccessible_states(const GenAutomaton& a) { return list_of_set(vcsn::coaccessible_states(*a)); } 00045 00046 // INTERFACE: Automaton coaccessible(const Automaton& a) { return vcsn::coaccessible(*a); } 00047 // INTERFACE: GenAutomaton coaccessible(const GenAutomaton& a) { return vcsn::coaccessible(*a); } 00048 00049 // INTERFACE: void coaccessible_here(Automaton& a) { return vcsn::coaccessible_here(*a); } 00050 // INTERFACE: void coaccessible_here(GenAutomaton& a) { return vcsn::coaccessible_here(*a); } 00051 00052 # include <vaucanson/design_pattern/design_pattern.hh> 00053 # include <vaucanson/automata/concept/handlers.hh> 00054 00055 # include <set> 00056 00057 namespace vcsn { 00058 00070 template<typename A, typename T> 00071 std::set<hstate_t> 00072 accessible_states(const Element<A, T>& a); 00073 00085 template<typename A, typename T> 00086 Element<A, T> 00087 accessible(const Element<A, T>& a); 00088 00101 template<typename A, typename T> 00102 void 00103 accessible_here(Element<A, T>& a); 00104 00115 template<typename A, typename T> 00116 std::set<hstate_t> 00117 coaccessible_states(const Element<A, T>& a); 00118 00131 template<typename A, typename T> 00132 Element<A, T> 00133 coaccessible(const Element<A, T>& a); 00134 00147 template<typename A, typename T> 00148 void 00149 coaccessible_here(Element<A, T>& a); 00150 00153 } // vcsn 00154 00155 00156 # if !defined VCSN_USE_INTERFACE_ONLY && !defined VCSN_USE_LIB 00157 # include <vaucanson/algorithms/accessible.hxx> 00158 # endif // VCSN_USE_INTERFACE_ONLY 00159 00160 00161 #endif // ! VCSN_ALGORITHMS_ACCESSIBLE_HH