1. 22 Oct, 2009 1 commit
  2. 21 Oct, 2009 1 commit
    • Jérôme Galtier's avatar
      Fix the vcsn-lal-char-b TAF-Kit context. · 6a8bfaba
      Jérôme Galtier authored
      * taf-kit/src/ratexp_commands.hh (aut_to_exp): Add a call to
      generalized because the aut_to_exp algorithm only works on generalized
      automata.
      * include/vaucanson/automata/concept/automata_base.hh
      (generalized_traits): Add the static keyword on the generalized
      method.
      * include/vaucanson/automata/concept/automata_base.hxx
      (generalized_traits::generalized): Update the initialization of the
      destination automaton.
      6a8bfaba
  3. 09 Oct, 2009 1 commit
    • Jérôme Galtier's avatar
      Update the documentation of the interface. · 2780bf57
      Jérôme Galtier authored
      * doc/doxygen.xsl (user-section): Ignore the "new_" prefix. Do not
      print detailed descriptions.
      * include/vaucanson/automata/concept/automata_base.hh
      (MetaElement<AutomataBase>): Change the grouping and order of
      the interface methods.
      2780bf57
  4. 08 Oct, 2009 1 commit
    • Florent D'Halluin's avatar
      Add entry iterators. · f70ae1b3
      Florent D'Halluin authored
      * include/Makefile.am: Add new files.
      * include/vaucanson/automata/implementation/iterators/delta_entry_iterator.hh,
      * include/vaucanson/automata/implementation/iterators/delta_entry_iterator.hxx,
      * include/vaucanson/automata/implementation/iterators/entry_iterator_base.hh,
      * include/vaucanson/automata/implementation/iterators/entry_iterator_base.hxx,
      * include/vaucanson/automata/implementation/iterators/rdelta_entry_iterator.hh,
      * include/vaucanson/automata/implementation/iterators/rdelta_entry_iterator.hxx:
      New. Interface & implementation.
      f70ae1b3
  5. 29 Sep, 2009 4 commits
    • Jérôme Galtier's avatar
      Overhaul generalized_traits. · b10c2a56
      Jérôme Galtier authored
      * include/vaucanson/automata/concept/automata.hh,
      include/vaucanson/automata/concept/automata.hxx (generalized): Remove
      this specialization.
      * include/vaucanson/automata/concept/automata_base.hh: Move the
      generalized function to generalized_traits, so that it will be easier
      to refactor the code later.
      * include/vaucanson/automata/concept/automata_base.hxx
      (VCSN_MAKE_GENERALIZED_AUTOMATON_TRAITS_IMPL): New macro to define the
      generalized function.
      * include/vaucanson/automata/implementation/bmig_graph_impl.hxx,
      include/vaucanson/automata/implementation/listg_graph_impl.hxx: Use
      the new VCSN_MAKE_GENERALIZED_AUTOMATON_TRAITS_IMPL macro.
      b10c2a56
    • Jérôme Galtier's avatar
      Remove aut_to_exp() from automaton_maker. · 9316cfd6
      Jérôme Galtier authored
      * include/vaucanson/contexts/automaton_maker.thh,
      include/vaucanson/contexts/automaton_maker.thxx (aut_to_exp): Remove.
      This function was not used, was causing a lot of troubles because of
      the call to generalized() and the design was wrong.
      9316cfd6
    • Jérôme Galtier's avatar
      Add a specialization for generalized(). · 7473cd1b
      Jérôme Galtier authored
      * include/vaucanson/automata/concept/automata.hh: Include
      automata_kind.hh so that labels_are_letters is known.
      (generalized): New (see automata.hxx).
      * include/vaucanson/automata/concept/automata.hxx (generalized): New
      specialization for labels_are_letters automata.
      7473cd1b
    • Jérôme Galtier's avatar
      Fix the lal boolean automaton context. · 0a7aa5d2
      Jérôme Galtier authored
      * include/vaucanson/automata/generic_contexts/lal_boolean_automaton_structures.hh:
      Use the labels_are_letters automaton context for real.
      0a7aa5d2
  6. 17 Sep, 2009 2 commits
    • Florent D'Halluin's avatar
      Add state iterators. · 16f4f683
      Florent D'Halluin authored
      * include/Makefile.am: Add new files.
      * include/vaucanson/automata/implementation/iterators/state_iterator.hh,
      * include/vaucanson/automata/implementation/iterators/state_iterator.hxx,
      * include/vaucanson/automata/implementation/iterators/state_iterator_base.hh,
      * include/vaucanson/automata/implementation/iterators/state_iterator_base.hxx:
      New. Interface & implementation.
      16f4f683
    • Florent D'Halluin's avatar
      Remove inheritance for iterator traits. · 014587e8
      Florent D'Halluin authored
      * include/vaucanson/automata/implementation/iterators/transition_iterator.hh:
      (iterator_traits_): Do not inherit from a base class
      014587e8
  7. 16 Sep, 2009 8 commits
    • Jérôme Galtier's avatar
      Remove inheritance for iterator traits. · 4858014c
      Jérôme Galtier authored
      * include/vaucanson/automata/implementation/iterators/delta_transition_iterator.hh,
      include/vaucanson/automata/implementation/iterators/rdelta_transition_iterator.hh,
      include/vaucanson/automata/implementation/iterators/transition_iterator_base.hh
      (iterator_traits_): Do not inherit from a base class, as it does not
      fit well with our static inheritance idiom.
      4858014c
    • Jérôme Galtier's avatar
      Replace the labels are words context by lal. · b0fb7a57
      Jérôme Galtier authored
      * configure.ac, include/.gitignore,
      include/vaucanson/automata/generic_contexts/lal_boolean_automaton.hh,
      include/vaucanson/automata/generic_contexts/lal_boolean_automaton_structures.hh,
      include/vaucanson/contexts/lal_automaton.thh, lib/Makefile.am,
      lib/generate_libvcsn.rb, taf-kit/src/Makefile.am,
      taf-kit/tests/Makefile.am, taf-kit/tests/vcsn-lal-char-b.test: Replace
      every occurrence of law by lal.
      b0fb7a57
    • Florent D'Halluin's avatar
      Add TransitionIterator. · eab3464e
      Florent D'Halluin authored
      All transition iterators were quickly tested for listg & bmig.
      
      * include/vaucanson/automata/implementation/iterators/transition_iterator.hh,
      * include/vaucanson/automata/implementation/iterators/transition_iterator.hxx:
      New.  Interface & implementation.
      eab3464e
    • Florent D'Halluin's avatar
      Cosmetic fixes. · 8c84347a
      Florent D'Halluin authored
      * include/vaucanson/automata/implementation/iterators/delta_transition_iterator.hxx,
      * include/vaucanson/automata/implementation/iterators/rdelta_transition_iterator.hh:
      There.
      8c84347a
    • Florent D'Halluin's avatar
      Use const refs in iterator ctors. · dd4e10a2
      Florent D'Halluin authored
      * include/vaucanson/automata/implementation/iterators/delta_transition_iterator.hh,
      * include/vaucanson/automata/implementation/iterators/delta_transition_iterator.hxx,
      * include/vaucanson/automata/implementation/iterators/rdelta_transition_iterator.hh,
      * include/vaucanson/automata/implementation/iterators/rdelta_transition_iterator.hxx:
      Use const graph_t& instead of graph_t.  The iterators now work
      with bmig.
      dd4e10a2
    • Florent D'Halluin's avatar
      Add RDeltaIterator. · cad87887
      Florent D'Halluin authored
      * include/vaucanson/automata/implementation/iterators/rdelta_transition_iterator.hh,
      * include/vaucanson/automata/implementation/iterators/rdelta_transition_iterator.hxx:
      New.  Interface and implementation.
      cad87887
    • Florent D'Halluin's avatar
      Small fixes in IteratorBase and DeltaTransitionIterator. · 738fd94d
      Florent D'Halluin authored
      * include/vaucanson/automata/implementation/iterators/transition_iterator_base.hxx:
      Fix constness in next().
      * include/vaucanson/automata/implementation/iterators/delta_transition_iterator.hh,
      * include/vaucanson/automata/implementation/iterators/delta_transition_iterator.hxx:
      Add typedef to simplify type names.
      Add default return value in op_weight().
      738fd94d
    • Florent D'Halluin's avatar
      Fix TransitionIteratorBase and DeltaTransitionIterator. · b14c66ad
      Florent D'Halluin authored
      Note: The iterator system compiles and DeltaTransitionIterator
      can be instanciated.
      
      * include/vaucanson/automata/implementation/iterators/transition_iterator_base.hh,
      * include/vaucanson/automata/implementation/iterators/transition_iterator_base.hxx:
      Have weight() return a semiring_elt_value_t instead of semiring_elt_t.
      Specialize iterator_traits_.
      Add typename where missing.
      * include/vaucanson/automata/implementation/iterators/delta_transition_iterator.hh,
      * include/vaucanson/automata/implementation/iterators/delta_transition_iterator.hxx:
      Fix iterator_traits_ to reflect changes in other files.
      Add typename where missing.
      b14c66ad
  8. 15 Sep, 2009 7 commits
  9. 14 Sep, 2009 3 commits
    • Jérôme Galtier's avatar
      Add a new context for labels are words boolean automata. · 913f27e3
      Jérôme Galtier authored
      * configure.ac: Add a wrapper for vcsn-law-char-b.
      * include/.gitignore: Exclude law_boolean headers.
      * include/vaucanson/automata/generic_contexts/law_boolean_automaton.hh,
      include/vaucanson/automata/generic_contexts/law_boolean_automaton_structures.hh,
      include/vaucanson/contexts/law_automaton.thh: New context for automata
      with kind labels are words.
      * taf-kit/tests/vcsn-law-char-b.test: New test for vcsn-law-char-b.
      * lib/Makefile.am: New library for vcsn-law-char-b.
      * lib/generate_libvcsn.rb: Generate the new libvcsn-law-b.la library.
      * taf-kit/src/Makefile.am: New TAF-Kit, vcsn-law-char-b.
      * taf-kit/tests/Makefile.am: Run the new test script.
      913f27e3
    • Jérôme Galtier's avatar
      Fix the interface for AutomataBase. · 539c5e5f
      Jérôme Galtier authored
      * include/vaucanson/automata/concept/automata_base.hxx
      (new_add_state): Remove this implementation.
      539c5e5f
    • Jérôme Galtier's avatar
      Fix the semantic isomorphism algorithm. · 3d151492
      Jérôme Galtier authored
      * include/vaucanson/algorithms/semantic_isomorphism.hxx
      (StrictSemanticCheck::CompatibleNode)
      (StrictSemanticCheck::CompatibleEdge)
      (AutomatonSemanticCheck::CompatibleNode)
      (AutomatonSemanticCheck::CompatibleEdge)
      (SemanticIsomorpher::state_neighbours_t::operator())
      (SemanticIsomorpher::SemanticIsomorpher)
      (SSR::SSR, SSR::GetID, SSR::~SSR, SSR::GetCoreSet)
      (SSR::NextPair, SSR::HasEdge, SSR::IsFeasiblePair)
      (SSR::AddPair, SSR::BackTrack, SSR::IsDead)
      (SSR::CoreLen, SSR::IsGoal)
      (SemanticIsomorpher::operator())
      (SemanticIsomorpher::fails_on_quick_tests)
      (SemanticIsomorpher::match, MAKE_isomorphism): Use the
      BENCH_TASK_SCOPED macro instead of TIMER_SCOPED.
      (SemanticIsomorpher::state_neighbours_t::FillNeighboursSet): Use
      delta_iterator (resp. rdelta_iterator) instead of deltac (resp.
      rdeltac).
      3d151492
  10. 02 Aug, 2009 2 commits
  11. 30 Jul, 2009 3 commits
    • Jérôme Galtier's avatar
      Cleanup unwanted code and aesthetic changes. · 877fa9e8
      Jérôme Galtier authored
      * ChangeLog,
      * src/demos/Makefile.am, src/demos/semantic_isomorphism/convert.cc,
      * src/demos/semantic_isomorphism/main.cc,
      * src/demos/semantic_isomorphism/semantic_isomorphism.tex
      * src/demos/semantic_isomorphism/test_semantic_isomorphism.cc,
      * include/vaucanson/algebra/implementation/letter/char_letter.hh,
      * include/vaucanson/automata/generic_contexts/int_based_boolean_automaton.hh,
      * include/vaucanson/automata/generic_contexts/int_based_boolean_automaton_structures.hh:
      Aesthetic changes and cleanup.
      * tools/pretty-printer/genetic.hxx, tools/pretty-printer/render.cc,
      * tools/pretty-printer/vcsng.pro, tools/pretty-printer/xml2vcsng.xsl:
      Remove layout algorithm as it is out of the Vaucanson bounds.
      877fa9e8
    • Florent D'Halluin's avatar
      Add implementation for initial & final states (9 functions). · 94c8a2fe
      Florent D'Halluin authored
      * include/vaucanson/automata/concept/automata_base.hxx:
      Add implementations.
      * src/tests/include/Makefile.am: Add new tests.
      * src/tests/include/tests/automata/implementation_check/add_final_test_failcomp.hh,
      * src/tests/include/tests/automata/implementation_check/add_initial_test_failcomp.hh,
      * src/tests/include/tests/automata/implementation_check/set_final_test_failcomp.hh,
      * src/tests/include/tests/automata/implementation_check/set_initial_test_failcomp.hh:
      Add failcomp tests.
      * src/tests/include/tests/automata/implementation_check/entry_test.hh:
      Update tests.
      94c8a2fe
    • Jérôme Galtier's avatar
      Remove new_add_state and new_del_state. · 0f5d02be
      Jérôme Galtier authored
      * include/vaucanson/automata/concept/automata_base.hh
      (new_add_state, new_del_state): Remove these functions as there is no
      major changes in their behaviors compared to the old interface. Move
      their respective documentation to add_state and del_state.
      0f5d02be
  12. 29 Jul, 2009 5 commits
    • Jérôme Galtier's avatar
      Add the functions to set, delete and add an entry. · 57eef3b4
      Jérôme Galtier authored
      * src/tests/include/tests/automata/implementation_check/entry_test.hh
      (entry_test): Add a check to test that new_del_entry effectively
      removes all the transitions.
      * include/vaucanson/automata/concept/automata_base.hxx
      (new_add_entry, new_del_entry, new_set_entry): Add the implementation.
      Include the vector header.
      * include/vaucanson/automata/concept/automata_base.hh
      (new_add_entry, new_del_entry, new_set_entry, new_get_entry): Improve
      the documentation.
      57eef3b4
    • Florent D'Halluin's avatar
      Add implementation for new_*_transition (3 functions). · 5441641a
      Florent D'Halluin authored
      * include/vaucanson/automata/concept/automata_base.hxx: Add
      implementation (temporary static_error).
      * src/tests/include/Makefile.am: Add test files.
      * src/tests/include/tests/automata/implementation_check/add_transition_test_failcomp.hh,
      * src/tests/include/tests/automata/implementation_check/del_transition_test_failcomp.hh,
      * src/tests/include/tests/automata/implementation_check/set_transition_test_failcomp.hh,
      New.  Ensure that new_*_transition cannot compile for labels-are-series.
      5441641a
    • Jérôme Galtier's avatar
      Add the function new_get_entry. · b49633d6
      Jérôme Galtier authored
      * include/vaucanson/automata/concept/automata_base.hxx
      (new_get_entry): New.
      * src/tests/include/Makefile.am: Add the entry_test.hh file to the
      distribution.
      * src/tests/include/tests/automata/implementation_check/entry_test.hh:
      New.
      * src/tests/test-suites/boolean_automaton.defs: Define the automaton
      namespace so that tests can refer to the main automaton context
      generically.
      b49633d6
    • Jérôme Galtier's avatar
      Add a basic implementation for new_add_state. · 181bad8f
      Jérôme Galtier authored
      * include/vaucanson/automata/concept/automata_base.hxx
      (new_add_state): Basic implementation using the old op_add_state.
      181bad8f
    • Jérôme Galtier's avatar
      Improve the build system for the documentation. · 3bf16658
      Jérôme Galtier authored
      * doc/Makefile.am: Use the xsltproc tool to transform the doxygen xml
      output to a latex file.
      * doc/doxygen.xsl, doc/manual/main.tex: New.
      * doc/spec.doxy.in: Set xml output flag to true.
      * include/vaucanson/automata/concept/automata_base.hh: Overhaul the
      documentation of the automaton concept.
      (entry_value_t): Change the typedef to series_set_elt_t.
      3bf16658
  13. 21 Jul, 2009 1 commit
    • Alex Hamelin's avatar
      Add more documentation to the upcomming automaton · e4033f02
      Alex Hamelin authored
      interface.
      
      * TODO_INTERFACE: Assign tasks.
      * include/vaucanson/automata/concept/automata_base.hh:
      Fix typos.
      (new_add_transition, new_del_transition, new_add_entry, new_del_entry):
      Complete their documentation.
      (entry_label_t): Rename as ...
      (entry_value_t): ... this.
      (new_add_state, new_del_state, new_set_entry, new_get_entry),
      (new_set_transition, new_add_initial, new_set_initial),
      (new_unset_initial, new_add_final, new_set_final, new_unset_final),
      (new_set_entry, new_get_entry): New functions prototypes
      extending the automata interface.
      e4033f02
  14. 01 Jul, 2009 1 commit
    • Alexandre Duret-Lutz's avatar
      Fix standard_of() w.r.t. listg. · fa41eeb8
      Alexandre Duret-Lutz authored
      * include/vaucanson/algorithms/standard_of.hxx
      (Standard_OfVisitor): After concatenating to automata, and before
      erasing the obsolete initial state of the RHS, do not explicitly
      erase the transition leaving that initial state.  This is useless
      because del_state() already does the work.  This was bogus because
      del_transition invalidates the delta_iterator in the listg
      implementation.
      * include/vaucanson/algorithms/standard.hxx: Typos.
      fa41eeb8