Vaucanson  1.4.1
listg_handlers.hh
1 // listg_handlers.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, 2006, 2007, 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_AUTOMATA_IMPLEMENTATION_LISTG_LISTG_HANDLERS_HH
18 # define VCSN_AUTOMATA_IMPLEMENTATION_LISTG_LISTG_HANDLERS_HH
19 
20 # include <vaucanson/automata/concept/handlers.hh>
21 
22 namespace vcsn
23 {
24 
25  template<typename Tag>
26  class handler<Tag, unsigned>
27  {
28  public:
29  typedef Tag kind;
30  typedef handler<Tag, unsigned> self_t;
31 
32  handler();
33 
34  explicit handler(unsigned h);
35 
36  handler(const self_t& h);
37 
38  self_t& operator=(const self_t& h);
39 
40  unsigned value() const;
41 
42  operator unsigned() const;
43 
44  bool is_valid() const;
45 
46  protected:
47  unsigned v_;
48  };
49 
50 } // vcsn
51 
52 # if !defined VCSN_USE_INTERFACE_ONLY || defined VCSN_USE_LIB
53 # include <vaucanson/automata/implementation/listg/listg_handlers.hxx>
54 #endif // VCSN_USE_INTERFACE_ONLY
55 
56 #endif
57