spot  0.9.2
bddlt.hh
Go to the documentation of this file.
1 // Copyright (C) 2011 Laboratoire de Recherche et Developpement de
2 // l'Epita (LRDE).
3 // Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
4 // département Systèmes Répartis Coopératifs (SRC), Université Pierre
5 // et Marie Curie.
6 //
7 // This file is part of Spot, a model checking library.
8 //
9 // Spot is free software; you can redistribute it and/or modify it
10 // under the terms of the GNU General Public License as published by
11 // the Free Software Foundation; either version 2 of the License, or
12 // (at your option) any later version.
13 //
14 // Spot is distributed in the hope that it will be useful, but WITHOUT
15 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
17 // License for more details.
18 //
19 // You should have received a copy of the GNU General Public License
20 // along with Spot; see the file COPYING. If not, write to the Free
21 // Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22 // 02111-1307, USA.
23 
24 #ifndef SPOT_MISC_BDDLT_HH
25 # define SPOT_MISC_BDDLT_HH
26 
27 # include <bdd.h>
28 # include <functional>
29 
30 namespace spot
31 {
34  struct bdd_less_than :
35  public std::binary_function<const bdd&, const bdd&, bool>
36  {
37  bool
38  operator()(const bdd& left, const bdd& right) const
39  {
40  return left.id() < right.id();
41  }
42  };
43 
46  struct bdd_hash :
47  public std::unary_function<const bdd&, size_t>
48  {
49  size_t
50  operator()(const bdd& b) const
51  {
52  return b.id();
53  }
54  };
55 
56 }
57 
58 #endif // SPOT_MISC_BDDLT_HH

Please comment this page and report errors about it on the RefDocComments page.
Generated on Mon Jul 2 2012 17:35:47 for spot by doxygen 1.8.1.1