00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 #ifndef VCSN_ALGORITHMS_IS_REALTIME_HXX
00018 # define VCSN_ALGORITHMS_IS_REALTIME_HXX
00019 
00020 # include <vaucanson/algorithms/is_realtime.hh>
00021 
00022 # include <vaucanson/automata/concept/transducer_base.hh>
00023 # include <vaucanson/misc/usual_macros.hh>
00024 
00025 namespace vcsn {
00026 
00027   template<typename S, typename A>
00028   bool
00029   do_is_realtime(const TransducerBase<S>&,
00030                  const A& trans)
00031   {
00032     TIMER_SCOPED("is_realtime (automaton)");
00033     AUTOMATON_TYPES(A);
00034     for_all_transitions(e, trans)
00035       if (!is_letter_support(trans.series_of(*e)))
00036         return false;
00037     return true;
00038   }
00039 
00040 } 
00041 
00042 #endif // ! VCSN_ALGORITHMS_IS_REALTIME_HXX