str_words.hh

00001 // str_words.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, 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_ALGEBRA_IMPLEMENTATION_FREE_MONOID_STR_WORDS_HH
00018 # define VCSN_ALGEBRA_IMPLEMENTATION_FREE_MONOID_STR_WORDS_HH
00019 
00020 # include <string>
00021 # include <vaucanson/algebra/implementation/free_monoid/words.hh>
00022 # include <vaucanson/algebra/implementation/alphabets/set_alphabet.hh>
00023 
00024 namespace vcsn {
00025 
00026   /*------------------------------------------.
00027   | Implementation of words with basic_string |
00028   `------------------------------------------*/
00029 
00030   template <typename A>
00031   void
00032   op_in_mul(const algebra::FreeMonoid<A>& s,
00033             std::basic_string<typename A::letter_t>& dst,
00034             const std::basic_string<typename A::letter_t>& src);
00035 
00036   template<typename A>
00037   std::basic_string<typename A::letter_t>
00038   op_mul(const algebra::FreeMonoid<A>& s,
00039          const std::basic_string<typename A::letter_t>& a,
00040          const std::basic_string<typename A::letter_t>& b);
00041 
00042   template<typename A>
00043   const std::basic_string<typename A::letter_t>&
00044   identity_value(SELECTOR(algebra::FreeMonoid<A>),
00045                  SELECTOR(std::basic_string<typename A::letter_t>));
00046 
00047   // one can create words from a single character
00048   template<typename A>
00049   std::basic_string<typename A::letter_t>
00050   op_convert(SELECTOR(algebra::FreeMonoid<A>),
00051              SELECTOR(std::basic_string<typename A::letter_t>), const typename A::letter_t& c);
00052 
00053 
00054 } // vcsn
00055 
00056 
00057 # ifndef VCSN_USE_INTERFACE_ONLY
00058 #  include <vaucanson/algebra/implementation/free_monoid/str_words.hxx>
00059 # endif // VCSN_USE_INTERFACE_ONLY
00060 
00061 
00062 #endif // ! VCSN_ALGEBRA_IMPLEMENTATION_FREE_MONOID_STR_WORDS_HH

Generated on Fri Jul 28 12:18:53 2006 for Vaucanson by  doxygen 1.4.6