Vcsn  2.0
Be Rational
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
info.cc
Go to the documentation of this file.
1 #include <vcsn/dyn/algos.hh>
2 #include <vcsn/dyn/automaton.hh>
3 #include <vcsn/algos/info.hh>
5 
6 namespace vcsn
7 {
8  namespace dyn
9  {
10  /*------------------.
11  | info(automaton). |
12  `------------------*/
13 
14  REGISTER_DEFINE(info);
15 
16  std::ostream&
17  info(const automaton& aut, std::ostream& out, bool detailed)
18  {
19  detail::info_registry().call(aut, out, detailed);
20  return out;
21  }
22 
23  /*---------------.
24  | info(ratexp). |
25  `---------------*/
26 
27  REGISTER_DEFINE(info_ratexp);
28 
29  std::ostream&
30  info(const dyn::ratexp& e, std::ostream& out)
31  {
32  detail::info_ratexp_registry().call(e, out);
33  return out;
34  }
35  }
36 }
std::shared_ptr< detail::automaton_base > automaton
Definition: automaton.hh:71
std::shared_ptr< detail::ratexp_base > ratexp
Definition: fwd.hh:64
std::ostream & info_ratexp(const ratexp &exp, std::ostream &o)
Bridge.
Definition: info.hh:319
std::ostream & info(const automaton &aut, std::ostream &out, bool detailed=false)
Output various facts about an automaton.
Definition: info.cc:17