00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef VCSN_AUTOMATA_CONCEPT_AUTOMATA_HH
00018 # define VCSN_AUTOMATA_CONCEPT_AUTOMATA_HH
00019
00020 # include <vaucanson/automata/concept/automata_base.hh>
00021 # include <vaucanson/design_pattern/slots.hh>
00022
00023 namespace vcsn {
00024
00025 template <class Series>
00026 struct Automata;
00027
00029 template <class Series>
00030 struct dynamic_traits<Automata<Series> >
00031 : dynamic_traits<AutomataBase<Automata<Series> > >
00032 {
00033 static const bool ret = dynamic_traits<Series>::ret;
00034 };
00035
00037 template <class Series, typename T>
00038 struct MetaElement<Automata<Series>, T>
00039 : MetaElement<AutomataBase<Automata<Series> >, T>
00040 {};
00041
00043 template <class Series>
00044 struct virtual_types<Automata<Series> >
00045 : virtual_types<AutomataBase<Automata<Series> > >
00046 {
00047 typedef Series series_set_t;
00048 };
00049
00050
00052 template <class Series>
00053 class Automata
00054 : public AutomataBase<Automata<Series> >,
00055 private SetSlot<Series>
00056 {
00057 public:
00058 typedef Automata<Series> self_t;
00059 typedef Series series_set_t;
00060
00061 Automata(const series_set_t&);
00062
00063 const series_set_t& series() const;
00064 };
00065
00066 template <class Series>
00067 bool
00068 operator==(const Automata<Series>&, const Automata<Series>&);
00069
00070 }
00071
00072
00073 #ifndef VCSN_USE_INTERFACE_ONLY
00074 # include <vaucanson/automata/concept/automata.hxx>
00075 #endif // VCSN_USE_INTERFACE_ONLY
00076
00077
00078 #endif // ! VCSN_AUTOMATA_CONCEPT_AUTOMATA_HH