Vcsn  2.0
Be Rational
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
enumerate.cc
Go to the documentation of this file.
2 #include <vcsn/dyn/algos.hh>
4 
5 namespace vcsn
6 {
7  namespace dyn
8  {
9  REGISTER_DEFINE(shortest);
10 
12  shortest(const automaton& aut, unsigned num)
13  {
14  return detail::shortest_registry().call(aut, num);
15  }
16 
17  REGISTER_DEFINE(enumerate);
18 
20  enumerate(const automaton& aut, unsigned max)
21  {
22  return detail::enumerate_registry().call(aut, max);
23  }
24  }
25 }
std::shared_ptr< detail::automaton_base > automaton
Definition: automaton.hh:71
polynomial enumerate(const automaton &aut, unsigned max)
All the accepted words of at most max letters.
Definition: enumerate.cc:20
std::shared_ptr< const detail::polynomial_base > polynomial
Definition: fwd.hh:55
polynomial shortest(const automaton &aut, unsigned max=1)
The at-most max first accepted words.
Definition: enumerate.cc:12