Vcsn  2.0
Be Rational
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
divkbaseb.cc
Go to the documentation of this file.
2 #include <vcsn/dyn/algos.hh>
4 
5 namespace vcsn
6 {
7  namespace dyn
8  {
9 
10  REGISTER_DEFINE(divkbaseb);
11 
12  automaton
13  divkbaseb(const context& ctx, unsigned k, unsigned b)
14  {
15  return detail::divkbaseb_registry().call(ctx, k, b);
16  }
17  }
18 }
std::shared_ptr< detail::automaton_base > automaton
Definition: automaton.hh:71
automaton divkbaseb(const context &ctx, unsigned divisor, unsigned base)
An automaton which accepts a word n representing a number in base b iff k|n.
Definition: divkbaseb.cc:13
Provide a variadic mul on top of a binary mul(), and one().
Definition: fwd.hh:36
std::shared_ptr< const detail::context_base > context
Definition: context.hh:71