00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 #ifndef VCSN_ALGEBRA_IMPLEMENTATION_MONOID_MONOID_REP_BASE_HH
00018 # define VCSN_ALGEBRA_IMPLEMENTATION_MONOID_MONOID_REP_BASE_HH
00019 
00020 # include <vector>
00021 # include <string>
00022 
00023 # include <boost/shared_ptr.hpp>
00024 
00025 # include <vaucanson/algebra/concept/letter.hh>
00026 # include <vaucanson/misc/usual_macros.hh>
00027 
00028 namespace vcsn
00029 {
00030   namespace algebra
00031   {
00032     template <template <typename> class S, typename T>
00033     struct MonoidRepBase
00034     {
00035       
00036       typedef T                                 monoid_t;
00037 
00038       
00039       typedef S<monoid_t>                       self_t;
00040 
00041       
00042       typedef boost::shared_ptr<self_t>         pointer_t;
00043 
00044       
00045       std::string               empty;
00046       std::string               concat;
00047       std::vector<std::string>  maybe_epsilon;
00048 
00049       
00050       MonoidRepBase();
00051 
00052       
00053       void disambiguate(const monoid_t&, pointer_t&);
00054     };
00055 
00056     template <template <typename> class S, typename T>
00057     bool operator==(boost::shared_ptr<MonoidRepBase<S, T> >,
00058                     boost::shared_ptr<MonoidRepBase<S, T> >);
00059 
00060   } 
00061 
00062 } 
00063 
00064 # if !defined VCSN_USE_INTERFACE_ONLY || defined VCSN_USE_LIB
00065 #  include <vaucanson/algebra/implementation/monoid/monoid_rep_base.hxx>
00066 # endif // VCSN_USE_INTERFACE_ONLY
00067 
00068 #endif // ! VCSN_ALGEBRA_IMPLEMENTATION_MONOID_MONOID_REP_BASE_HH