set_alphabet.hh

00001 // set_alphabet.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_ALGEBRA_IMPLEMENTATION_ALPHABETS_SET_ALPHABET_HH
00018 # define VCSN_ALGEBRA_IMPLEMENTATION_ALPHABETS_SET_ALPHABET_HH
00019 
00020 # include <vaucanson/algebra/implementation/alphabets/alphabets.hh>
00021 
00022 namespace vcsn {
00023 
00024   namespace algebra {
00025 
00029     /*--------------------------------------------.
00030     | alphabet_traits<AlphabetSet<L>,std::set<L>> |
00031     `--------------------------------------------*/
00032 
00034     template<typename L>
00035     struct alphabet_traits<AlphabetSet<L>, std::set<L> >
00036     {
00038       typedef L                 letter_t;
00039     };
00040 
00044   } // algebra
00045 
00049   /*-----------------------------------------.
00050   | MetaElement<AlphabetSet<L>, std::set<L>> |
00051   `-----------------------------------------*/
00052 
00058   template<typename L>
00059   struct MetaElement<algebra::AlphabetSet<L>, std::set<L> >
00060     : MetaElement<algebra::AlphabetSetBase<algebra::AlphabetSet<L> >, std::set<L> >
00061   {
00063     static const bool dynamic_value = true;
00064   };
00065 
00069   template <typename L>
00070   size_t op_max_size(const algebra::AlphabetSet<L>&, const std::set<L>&);
00071 
00072   template <typename L>
00073   bool op_contains(const algebra::AlphabetSet<L>& s, const std::set<L>& a);
00074 
00075   template <typename L>
00076   bool op_is_finite(const algebra::AlphabetSet<L>& s, const std::set<L>& a);
00077 
00078   template <typename L>
00079   bool op_contains_e(const algebra::AlphabetSet<L>& s, const std::set<L>& a,
00080                      const L& v);
00081 
00082 } // vcsn
00083 
00084 # ifndef VCSN_USE_INTERFACE_ONLY
00085 #  include <vaucanson/algebra/implementation/alphabets/set_alphabet.hxx>
00086 # endif // VCSN_USE_INTERFACE_ONLY
00087 
00088 #endif // ! VCSN_ALGEBRA_IMPLEMENTATION_ALPHABETS_SET_ALPHABET_HH

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