Commit db1fa2cf authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

Fix make_automaton() to support int letters

parent f7851b3c
2008-11-26 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Fix make_automaton() to support int letters.
* include/vaucanson/contexts/fmp_transducer_maker.thh,
include/vaucanson/contexts/fmp_transducer_maker.thxx
(make_automaton): Take first_monoid_elt_value_t and
second_monoid_elt_value_t as arguments, do not hardcode
std::string.
2008-11-26 Alexandre Duret-Lutz <adl@lrde.epita.fr>
 
* src/tests/check/check-flags.mk (AM_CPPFLAGS): Search $(srcdir)/..
......
......@@ -61,17 +61,17 @@ namespace vcsn
template <class T1, class T2>
monoid_elt_t make_couple(const T1& first_alphabet,
const T2& second_alphabet,
const std::string& first_exp = "",
const std::string& second_exp = "");
const T2& second_alphabet,
const first_monoid_elt_value_t& first_exp,
const second_monoid_elt_value_t& second_exp);
template <class FirstIterator, class SecondIterator>
monoid_elt_t make_couple(const FirstIterator first_begin,
const FirstIterator first_end,
const SecondIterator second_begin,
const SecondIterator second_end,
const std::string& first_exp,
const std::string& second_exp);
const FirstIterator first_end,
const SecondIterator second_begin,
const SecondIterator second_end,
const first_monoid_elt_value_t& first_exp,
const second_monoid_elt_value_t& second_exp);
template <typename TransStruct,
typename TransImpl,
......@@ -86,4 +86,3 @@ namespace vcsn
} // End of namespace vcsn.
# include <vaucanson/contexts/fmp_transducer_maker.thxx>
......@@ -147,8 +147,8 @@ namespace vcsn
const FirstIterator first_end,
const SecondIterator second_begin,
const SecondIterator second_end,
const std::string& first_exp,
const std::string& second_exp)
const first_monoid_elt_value_t& first_exp,
const second_monoid_elt_value_t& second_exp)
{
first_alphabet_t first_alpha;
for (FirstIterator e = first_begin; e != first_end; ++e)
......@@ -167,8 +167,8 @@ namespace vcsn
template <class T1, class T2>
monoid_elt_t make_couple(const T1& first_alphabet,
const T2& second_alphabet,
const std::string& first_exp,
const std::string& second_exp)
const first_monoid_elt_value_t& first_exp,
const second_monoid_elt_value_t& second_exp)
{
return make_couple(first_alphabet.begin(), first_alphabet.end(),
second_alphabet.begin(), second_alphabet.end(),
......@@ -219,4 +219,3 @@ namespace vcsn
} // End of VCSN_CONTEXT_NAMESPACE.
} // End of VCSN_GRAPH_IMPL.
} // End of namespace vcsn.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment