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 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 00034 // INTERFACE: void standardize(Automaton& a) { return vcsn::standardize(*a); } 00035 // INTERFACE: void standardize(GenAutomaton& a) { return vcsn::standardize(*a); } 00036 00037 // INTERFACE: bool is_standard(Automaton& a) { return vcsn::is_standard(*a); } 00038 // INTERFACE: bool is_standard(GenAutomaton& a) { return vcsn::is_standard(*a); } 00039 00040 // INTERFACE: void union_of_standard_here(Automaton& a1, const Automaton& a2) { return vcsn::union_of_standard_here(*a1, *a2); } 00041 // INTERFACE: void union_of_standard_here(GenAutomaton& a1, const GenAutomaton& a2) { return vcsn::union_of_standard_here(*a1, *a2); } 00042 00043 // INTERFACE: Automaton union_of_standard(const Automaton& a1, const Automaton& a2) { return vcsn::union_of_standard(*a1, *a2); } 00044 // INTERFACE: GenAutomaton union_of_standard(const GenAutomaton& a1, const GenAutomaton& a2) { return vcsn::union_of_standard(*a1, *a2); } 00045 00046 // INTERFACE: void concat_of_standard_here(Automaton& a1, const Automaton& a2) { return vcsn::concat_of_standard_here(*a1, *a2); } 00047 // INTERFACE: void concat_of_standard_here(GenAutomaton& a1, const GenAutomaton& a2) { return vcsn::concat_of_standard_here(*a1, *a2); } 00048 00049 // INTERFACE: Automaton concat_of_standard(const Automaton& a1, const Automaton& a2) { return vcsn::concat_of_standard(*a1, *a2); } 00050 // INTERFACE: GenAutomaton concat_of_standard(const GenAutomaton& a1, const GenAutomaton& a2) { return vcsn::concat_of_standard(*a1, *a2); } 00051 00052 // INTERFACE: void star_of_standard_here(Automaton& a) { return vcsn::star_of_standard_here(*a); } 00053 // INTERFACE: void star_of_standard_here(GenAutomaton& a) { return vcsn::star_of_standard_here(*a); } 00054 00055 // INTERFACE: Automaton star_of_standard(const Automaton& a) { return vcsn::star_of_standard(*a); } 00056 // INTERFACE: GenAutomaton star_of_standard(const GenAutomaton& a) { return vcsn::star_of_standard(*a); } 00057 00058 # include <vaucanson/design_pattern/design_pattern.hh> 00059 00060 namespace vcsn { 00061 00073 template<typename A, typename T> 00074 void 00075 standardize(Element<A, T>& a); 00076 00084 template<typename A, typename T> 00085 bool 00086 is_standard(const Element<A, T>& a); 00087 00099 template<typename A, typename T, typename U> 00100 void 00101 union_of_standard_here(Element<A, T>& lhs, 00102 const Element<A, U>& rhs); 00103 00115 template<typename A, typename T, typename U> 00116 Element<A, T> 00117 union_of_standard(const Element<A, T>& lhs, 00118 const Element<A, U>& rhs); 00119 00131 template<typename A, typename T, typename U> 00132 void 00133 concat_of_standard_here(Element<A, T>& lhs, 00134 const Element<A, U>& rhs); 00135 00147 template<typename A, typename T, typename U> 00148 Element<A, T> 00149 concat_of_standard(const Element<A, T>& lhs, 00150 const Element<A, U>& rhs); 00151 00162 template<typename A, typename T> 00163 void 00164 star_of_standard_here(Element<A, T>& a); 00165 00176 template<typename A, typename T> 00177 Element<A, T> 00178 star_of_standard(const Element<A, T>& a); 00179 00182 } // vcsn 00183 00184 # ifndef VCSN_USE_INTERFACE_ONLY 00185 # include <vaucanson/algorithms/standard.hxx> 00186 # endif // VCSN_USE_INTERFACE_ONLY 00187 00188 #endif // ! VCSN_ALGORITHMS_STANDARD_HH