Vaucanson  1.4.1
algorithms/transpose.hh
Go to the documentation of this file.
1 // transpose.hh: this file is part of the Vaucanson project.
2 //
3 // Vaucanson, a generic library for finite state machines.
4 //
5 // Copyright (C) 2001, 2002, 2003, 2004, 2005, 2008 The Vaucanson Group.
6 //
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License
9 // as published by the Free Software Foundation; either version 2
10 // of the License, or (at your option) any later version.
11 //
12 // The complete GNU General Public Licence Notice can be found as the
13 // `COPYING' file in the root directory.
14 //
15 // The Vaucanson Group consists of people listed in the `AUTHORS' file.
16 //
17 #ifndef VCSN_ALGORITHMS_TRANSPOSE_HH
18 # define VCSN_ALGORITHMS_TRANSPOSE_HH
19 
30 # include <vaucanson/automata/concept/automata.hh>
31 
32 // INTERFACE: void transpose(Automaton& dst, const Automaton& src) { vcsn::transpose(*dst, *src); }
33 
34 // INTERFACE: Automaton transpose(const Automaton& a) { return vcsn::transpose(*a); }
35 
36 namespace vcsn {
37 
48  template<typename A, typename AI1, typename AI2>
49  void
50  transpose(Element<A, AI1>& dst, const Element<A, AI2>& src);
51 
59  template<typename A, typename AI>
60  Element<A, AI>
61  transpose(const Element<A, AI>& src);
62 
65 } //vcsn
66 
67 # if !defined VCSN_USE_INTERFACE_ONLY && !defined VCSN_USE_LIB
68 # include <vaucanson/algorithms/transpose.hxx>
69 # endif // VCSN_USE_INTERFACE_ONLY
70 
71 #endif // ! VCSN_ALGORITHMS_TRANSPOSE_HH