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

Generated on Thu Dec 13 16:03:01 2007 for Vaucanson by  doxygen 1.5.4