00001 // standard.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, 2008, 2009 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_STANDARD_HH 00018 # define VCSN_ALGORITHMS_STANDARD_HH 00019 00040 // INTERFACE: void standardize(Automaton& a) { return vcsn::standardize(*a); } 00041 // INTERFACE: void standardize(GenAutomaton& a) { return vcsn::standardize(*a); } 00042 00043 // INTERFACE: bool is_standard(const Automaton& a) { return vcsn::is_standard(*a); } 00044 // INTERFACE: bool is_standard(const GenAutomaton& a) { return vcsn::is_standard(*a); } 00045 00046 // INTERFACE: void union_of_standard_here(Automaton& a1, const Automaton& a2) { return vcsn::union_of_standard_here(*a1, *a2); } 00047 // INTERFACE: void union_of_standard_here(GenAutomaton& a1, const GenAutomaton& a2) { return vcsn::union_of_standard_here(*a1, *a2); } 00048 00049 // INTERFACE: Automaton union_of_standard(const Automaton& a1, const Automaton& a2) { return vcsn::union_of_standard(*a1, *a2); } 00050 // INTERFACE: GenAutomaton union_of_standard(const GenAutomaton& a1, const GenAutomaton& a2) { return vcsn::union_of_standard(*a1, *a2); } 00051 00052 // INTERFACE: void concat_of_standard_here(Automaton& a1, const Automaton& a2) { return vcsn::concat_of_standard_here(*a1, *a2); } 00053 // INTERFACE: void concat_of_standard_here(GenAutomaton& a1, const GenAutomaton& a2) { return vcsn::concat_of_standard_here(*a1, *a2); } 00054 00055 // INTERFACE: Automaton concat_of_standard(const Automaton& a1, const Automaton& a2) { return vcsn::concat_of_standard(*a1, *a2); } 00056 // INTERFACE: GenAutomaton concat_of_standard(const GenAutomaton& a1, const GenAutomaton& a2) { return vcsn::concat_of_standard(*a1, *a2); } 00057 00058 // INTERFACE: void star_of_standard_here(Automaton& a) { return vcsn::star_of_standard_here(*a); } 00059 // INTERFACE: void star_of_standard_here(GenAutomaton& a) { return vcsn::star_of_standard_here(*a); } 00060 00061 // INTERFACE: Automaton star_of_standard(const Automaton& a) { return vcsn::star_of_standard(*a); } 00062 // INTERFACE: GenAutomaton star_of_standard(const GenAutomaton& a) { return vcsn::star_of_standard(*a); } 00063 00064 # include <vaucanson/design_pattern/design_pattern.hh> 00065 00066 namespace vcsn { 00067 00077 template<typename A, typename AI> 00078 void 00079 standardize(Element<A, AI>& a); 00080 00088 template<typename A, typename AI> 00089 bool 00090 is_standard(const Element<A, AI>& a); 00091 00103 template<typename A, typename AI1, typename AI2> 00104 void 00105 union_of_standard_here(Element<A, AI1>& lhs, 00106 const Element<A, AI2>& rhs); 00107 00119 template<typename A, typename AI1, typename AI2> 00120 Element<A, AI1> 00121 union_of_standard(const Element<A, AI1>& lhs, 00122 const Element<A, AI2>& rhs); 00123 00135 template<typename A, typename AI1, typename AI2> 00136 void 00137 concat_of_standard_here(Element<A, AI1>& lhs, 00138 const Element<A, AI2>& rhs); 00139 00151 template<typename A, typename AI1, typename AI2> 00152 Element<A, AI1> 00153 concat_of_standard(const Element<A, AI1>& lhs, 00154 const Element<A, AI2>& rhs); 00155 00166 template<typename A, typename AI> 00167 void 00168 star_of_standard_here(Element<A, AI>& a); 00169 00180 template<typename A, typename AI> 00181 Element<A, AI> 00182 star_of_standard(const Element<A, AI>& a); 00183 00186 } // vcsn 00187 00188 # if !defined VCSN_USE_INTERFACE_ONLY && !defined VCSN_USE_LIB 00189 # include <vaucanson/algorithms/standard.hxx> 00190 # endif // VCSN_USE_INTERFACE_ONLY 00191 00192 #endif // ! VCSN_ALGORITHMS_STANDARD_HH