Commit b37c396f authored by Akim Demaille's avatar Akim Demaille
Browse files

Include namespace in VCSN_CONTEXT_NAMESPACE.

	So that if the latter is not defined, it triggers an error instead
	of putting everything in the namespace named VCSN_CONTEXT_NAMESPACE.
	* include/vaucanson/r_automaton.hh, 
	* include/vaucanson/z_transducer.hh, 
	* include/vaucanson/z_fmp_transducer.hh, 
	* include/vaucanson/boolean_automaton.hh, 
	* include/vaucanson/z_max_plus_automaton.hh, 
	* include/vaucanson/boolean_transducer.hh, 
	* include/vaucanson/contexts/r_semiring.thh, 
	* include/vaucanson/contexts/ratseries_semiring.thh, 
	* include/vaucanson/contexts/automaton_functions.thh, 
	* include/vaucanson/contexts/transducer_functions.thh, 
	* include/vaucanson/contexts/fmp_transducer_functions.thh, 
	* include/vaucanson/contexts/z_semiring.thh, 
	* include/vaucanson/contexts/automaton.thh, 
	* include/vaucanson/contexts/automaton_functions.thxx, 
	* include/vaucanson/contexts/polynom_series.thh, 
	* include/vaucanson/contexts/transducer_functions.thxx, 
	* include/vaucanson/contexts/transducer.thh, 
	* include/vaucanson/contexts/z_min_plus_semiring.thh, 
	* include/vaucanson/contexts/boolean_semiring.thh, 
	* include/vaucanson/contexts/fmp_transducer_functions.thxx, 
	* include/vaucanson/contexts/z_max_plus_semiring.thh, 
	* include/vaucanson/contexts/generic_automaton_impl.thh, 
	* include/vaucanson/contexts/dynamic_alphabet.thh, 
	* include/vaucanson/contexts/generic_series.thh, 
	* include/vaucanson/contexts/free_monoid_product.thh, 
	* include/vaucanson/contexts/free_monoid.thh, 
	* include/vaucanson/contexts/char_letter.thh, 
	* include/vaucanson/fmp_transducer.hh: 
	Do that.
parent ce5d3e65
2006-10-30 Akim Demaille <akim@lrde.epita.fr>
Include namespace in VCSN_CONTEXT_NAMESPACE.
So that if the latter is not defined, it triggers an error instead
of putting everything in the namespace named VCSN_CONTEXT_NAMESPACE.
* include/vaucanson/r_automaton.hh,
* include/vaucanson/z_transducer.hh,
* include/vaucanson/z_fmp_transducer.hh,
* include/vaucanson/boolean_automaton.hh,
* include/vaucanson/z_max_plus_automaton.hh,
* include/vaucanson/boolean_transducer.hh,
* include/vaucanson/contexts/r_semiring.thh,
* include/vaucanson/contexts/ratseries_semiring.thh,
* include/vaucanson/contexts/automaton_functions.thh,
* include/vaucanson/contexts/transducer_functions.thh,
* include/vaucanson/contexts/fmp_transducer_functions.thh,
* include/vaucanson/contexts/z_semiring.thh,
* include/vaucanson/contexts/automaton.thh,
* include/vaucanson/contexts/automaton_functions.thxx,
* include/vaucanson/contexts/polynom_series.thh,
* include/vaucanson/contexts/transducer_functions.thxx,
* include/vaucanson/contexts/transducer.thh,
* include/vaucanson/contexts/z_min_plus_semiring.thh,
* include/vaucanson/contexts/boolean_semiring.thh,
* include/vaucanson/contexts/fmp_transducer_functions.thxx,
* include/vaucanson/contexts/z_max_plus_semiring.thh,
* include/vaucanson/contexts/generic_automaton_impl.thh,
* include/vaucanson/contexts/dynamic_alphabet.thh,
* include/vaucanson/contexts/generic_series.thh,
* include/vaucanson/contexts/free_monoid_product.thh,
* include/vaucanson/contexts/free_monoid.thh,
* include/vaucanson/contexts/char_letter.thh,
* include/vaucanson/fmp_transducer.hh:
Do that.
2006-10-29 Akim Demaille <akim.demaille@free.fr>
Move vcsn-Makefile
......
......@@ -14,10 +14,11 @@
//
// The Vaucanson Group consists of people listed in the `AUTHORS' file.
//
#ifndef VCSN_BOOLEAN_AUTOMATON_HH
# define VCSN_BOOLEAN_AUTOMATON_HH
# define VCSN_CONTEXT_NAMESPACE boolean_automaton
# define VCSN_CONTEXT_NAMESPACE namespace boolean_automaton
# include <vaucanson/contexts/char_letter.thh>
# include <vaucanson/contexts/dynamic_alphabet.thh>
......@@ -30,7 +31,7 @@
namespace vcsn
{
namespace VCSN_CONTEXT_NAMESPACE
VCSN_CONTEXT_NAMESPACE
{
AUTOMATON_FREEMONOID_TYPES_EXACT(automaton_t);
}
......
......@@ -2,7 +2,7 @@
//
// Vaucanson, a generic library for finite state machines.
//
// Copyright (C) 2004, 2005 The Vaucanson Group.
// Copyright (C) 2004, 2005, 2006 The Vaucanson Group.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
......@@ -19,7 +19,7 @@
# include <vaucanson/boolean_automaton.hh>
# define VCSN_CONTEXT_NAMESPACE boolean_transducer
# define VCSN_CONTEXT_NAMESPACE namespace boolean_transducer
# define AUTOMATON_CONTEXT boolean_automaton
# include <vaucanson/contexts/char_letter.thh>
......@@ -29,7 +29,7 @@
namespace vcsn
{
namespace VCSN_CONTEXT_NAMESPACE
VCSN_CONTEXT_NAMESPACE
{
typedef boolean_automaton::semiring_elt_t output_semiring_elt_t;
......@@ -52,7 +52,7 @@ namespace vcsn
namespace vcsn
{
namespace VCSN_CONTEXT_NAMESPACE
VCSN_CONTEXT_NAMESPACE
{
AUTOMATON_TYPES_EXACT(automaton_t);
......
......@@ -27,7 +27,7 @@
namespace vcsn
{
namespace VCSN_CONTEXT_NAMESPACE
VCSN_CONTEXT_NAMESPACE
{
typedef vcsn::Automata<series_set_elt_t::set_t> automata_set_t;
......@@ -36,6 +36,6 @@ namespace vcsn
AUTOMATON_TYPES_EXACT(automaton_t);
} // End of namespace VCSN_CONTEXT_NAMESPACE.
} // End of VCSN_CONTEXT_NAMESPACE.
} // End of namespace vcsn.
......@@ -59,7 +59,7 @@
namespace vcsn
{
namespace VCSN_CONTEXT_NAMESPACE
VCSN_CONTEXT_NAMESPACE
{
......@@ -104,7 +104,7 @@ namespace vcsn
aut_to_exp(const automaton_t& a, const Chooser& c);
} // End of namespace VCSN_CONTEXT_NAMESPACE.
} // End of VCSN_CONTEXT_NAMESPACE.
} // End of namespace vcsn.
......
......@@ -24,7 +24,7 @@
namespace vcsn
{
namespace VCSN_CONTEXT_NAMESPACE
VCSN_CONTEXT_NAMESPACE
{
/*-----------------.
......@@ -159,6 +159,6 @@ namespace vcsn
return aut_to_exp(generalized(a), c);
}
} // End of namespace VCSN_CONTEXT_NAMESPACE.
} // End of VCSN_CONTEXT_NAMESPACE.
} // End of namespace vcsn.
......@@ -27,7 +27,7 @@
namespace vcsn
{
namespace VCSN_CONTEXT_NAMESPACE
VCSN_CONTEXT_NAMESPACE
{
typedef vcsn::algebra::NumericalSemiring semiring_t;
......@@ -37,6 +37,6 @@ namespace vcsn
vcsn::Element<semiring_t, semiring_elt_value_t>
semiring_elt_t;
} // End of namespace VCSN_CONTEXT_NAMESPACE.
} // End of VCSN_CONTEXT_NAMESPACE.
} // End of namespace vcsn.
......@@ -24,11 +24,11 @@
namespace vcsn
{
namespace VCSN_CONTEXT_NAMESPACE
VCSN_CONTEXT_NAMESPACE
{
typedef char letter_t;
} // End of namespace VCSN_CONTEXT_NAMESPACE.
} // End of VCSN_CONTEXT_NAMESPACE.
} // End of namespace vcsn.
......@@ -26,13 +26,13 @@
namespace vcsn
{
namespace VCSN_CONTEXT_NAMESPACE
VCSN_CONTEXT_NAMESPACE
{
typedef vcsn::algebra::AlphabetSet<letter_t> alphabet_set_t;
typedef std::set<letter_t> alphabet_impl_t;
typedef vcsn::Element<alphabet_set_t, alphabet_impl_t> alphabet_t;
} // End of namespace VCSN_CONTEXT_NAMESPACE.
} // End of VCSN_CONTEXT_NAMESPACE.
} // End of namespace vcsn.
......@@ -40,7 +40,7 @@
namespace vcsn
{
namespace VCSN_CONTEXT_NAMESPACE
VCSN_CONTEXT_NAMESPACE
{
template <class T1, class T2>
......@@ -75,7 +75,7 @@ namespace vcsn
evaluation(const Element<TransStruct, TransImpl>& t,
const Element<ArgStruct, ArgImpl>& input);
} // End of namespace VCSN_CONTEXT_NAMESPACE.
} // End of VCSN_CONTEXT_NAMESPACE.
} // End of namespace vcsn.
......
......@@ -29,7 +29,7 @@
namespace vcsn
{
namespace VCSN_CONTEXT_NAMESPACE
VCSN_CONTEXT_NAMESPACE
{
template <class FirstInputIterator, class SecondInputIterator>
......@@ -146,6 +146,6 @@ namespace vcsn
}
} // End of namespace VCSN_CONTEXT_NAMESPACE.
} // End of VCSN_CONTEXT_NAMESPACE.
} // End of namespace vcsn.
......@@ -26,13 +26,13 @@
namespace vcsn
{
namespace VCSN_CONTEXT_NAMESPACE
VCSN_CONTEXT_NAMESPACE
{
typedef vcsn::algebra::FreeMonoid<alphabet_t> monoid_t;
typedef std::basic_string<alphabet_t::letter_t> monoid_elt_value_t;
typedef vcsn::Element<monoid_t, monoid_elt_value_t> monoid_elt_t;
} // End of namespace VCSN_CONTEXT_NAMESPACE.
} // End of VCSN_CONTEXT_NAMESPACE.
} // End of namespace vcsn.
......@@ -26,7 +26,7 @@
namespace vcsn
{
namespace VCSN_CONTEXT_NAMESPACE
VCSN_CONTEXT_NAMESPACE
{
typedef
......@@ -36,6 +36,6 @@ namespace vcsn
typedef std::pair<std::string, std::string> monoid_elt_value_t;
typedef vcsn::Element<monoid_t, monoid_elt_value_t> monoid_elt_t;
} // End of namespace VCSN_CONTEXT_NAMESPACE.
} // End of VCSN_CONTEXT_NAMESPACE.
} // End of namespace vcsn.
......@@ -27,7 +27,7 @@
namespace vcsn
{
namespace VCSN_CONTEXT_NAMESPACE
VCSN_CONTEXT_NAMESPACE
{
typedef vcsn::Graph<
......@@ -41,6 +41,6 @@ namespace vcsn
>
automaton_impl_t;
} // End of namespace VCSN_CONTEXT_NAMESPACE.
} // End of VCSN_CONTEXT_NAMESPACE.
} // End of namespace vcsn.
......@@ -29,7 +29,7 @@
namespace vcsn
{
namespace VCSN_CONTEXT_NAMESPACE
VCSN_CONTEXT_NAMESPACE
{
typedef
......@@ -40,6 +40,6 @@ namespace vcsn
vcsn::Element<series_set_t, rat_exp_impl_t>
rat_exp_t;
} // End of namespace VCSN_CONTEXT_NAMESPACE.
} // End of VCSN_CONTEXT_NAMESPACE.
} // End of namespace vcsn.
......@@ -26,7 +26,7 @@
namespace vcsn
{
namespace VCSN_CONTEXT_NAMESPACE
VCSN_CONTEXT_NAMESPACE
{
typedef
......@@ -41,6 +41,6 @@ namespace vcsn
vcsn::Element<series_set_t, series_set_elt_value_t>
series_set_elt_t;
} // End of namespace VCSN_CONTEXT_NAMESPACE.
} // End of VCSN_CONTEXT_NAMESPACE.
} // End of namespace vcsn.
......@@ -26,7 +26,7 @@
namespace vcsn
{
namespace VCSN_CONTEXT_NAMESPACE
VCSN_CONTEXT_NAMESPACE
{
typedef vcsn::algebra::NumericalSemiring semiring_t;
......@@ -36,6 +36,6 @@ namespace vcsn
vcsn::Element<semiring_t, semiring_elt_value_t>
semiring_elt_t;
} // End of namespace VCSN_CONTEXT_NAMESPACE.
} // End of VCSN_CONTEXT_NAMESPACE.
} // End of namespace vcsn.
......@@ -24,13 +24,13 @@
namespace vcsn
{
namespace VCSN_CONTEXT_NAMESPACE
VCSN_CONTEXT_NAMESPACE
{
typedef output_series_set_elt_t semiring_elt_t;
typedef output_series_set_elt_t::set_t semiring_t;
typedef output_series_set_elt_t::value_t semiring_elt_value_t;
} // End of namespace VCSN_CONTEXT_NAMESPACE.
} // End of VCSN_CONTEXT_NAMESPACE.
} // End of namespace vcsn.
......@@ -26,7 +26,7 @@
namespace vcsn
{
namespace VCSN_CONTEXT_NAMESPACE
VCSN_CONTEXT_NAMESPACE
{
typedef vcsn::Transducer<series_set_elt_t::set_t> automata_set_t;
......@@ -34,6 +34,6 @@ namespace vcsn
AUTOMATON_TYPES_EXACT(automaton_t);
} // End of namespace VCSN_CONTEXT_NAMESPACE.
} // End of VCSN_CONTEXT_NAMESPACE.
} // End of namespace vcsn.
......@@ -37,7 +37,7 @@
namespace vcsn
{
namespace VCSN_CONTEXT_NAMESPACE
VCSN_CONTEXT_NAMESPACE
{
template <class T>
......@@ -58,7 +58,7 @@ namespace vcsn
evaluation(const Element<TransStruct, TransImpl>& t,
const Element<ArgStruct, ArgImpl>& input);
} // End of namespace VCSN_CONTEXT_NAMESPACE.
} // End of VCSN_CONTEXT_NAMESPACE.
} // 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