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/automata.hh> 00054 //# include <vaucanson/automata/concept/handlers.hh> 00055 00056 # include <set> 00057 00058 namespace vcsn { 00059 00071 template<typename A, typename T> 00072 std::set<typename automaton_traits<T>::hstate_t> 00073 accessible_states(const Element<A, T>& a); 00074 00086 template<typename A, typename T> 00087 Element<A, T> 00088 accessible(const Element<A, T>& a); 00089 00102 template<typename A, typename T> 00103 void 00104 accessible_here(Element<A, T>& a); 00105 00116 template<typename A, typename T> 00117 std::set<typename automaton_traits<T>::hstate_t> 00118 coaccessible_states(const Element<A, T>& a); 00119 00132 template<typename A, typename T> 00133 Element<A, T> 00134 coaccessible(const Element<A, T>& a); 00135 00148 template<typename A, typename T> 00149 void 00150 coaccessible_here(Element<A, T>& a); 00151 00154 } // vcsn 00155 00156 00157 # if !defined VCSN_USE_INTERFACE_ONLY && !defined VCSN_USE_LIB 00158 # include <vaucanson/algorithms/accessible.hxx> 00159 # endif // VCSN_USE_INTERFACE_ONLY 00160 00161 00162 #endif // ! VCSN_ALGORITHMS_ACCESSIBLE_HH