spot
1.2.6
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
misc
bddlt.hh
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 3 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 this program. If not, see <http://www.gnu.org/licenses/>.
21
22
#ifndef SPOT_MISC_BDDLT_HH
23
# define SPOT_MISC_BDDLT_HH
24
25
# include <bdd.h>
26
# include <functional>
27
28
namespace
spot
29
{
32
struct
bdd_less_than
:
33
public
std::binary_function<const bdd&, const bdd&, bool>
34
{
35
bool
36
operator()(
const
bdd& left,
const
bdd& right)
const
37
{
38
return
left.id() < right.id();
39
}
40
};
41
44
struct
bdd_hash
:
45
public
std::unary_function<const bdd&, size_t>
46
{
47
size_t
48
operator()(
const
bdd& b)
const
49
{
50
return
b.id();
51
}
52
};
53
54
}
55
56
#endif // SPOT_MISC_BDDLT_HH
Please direct any
question
,
comment
, or
bug report
to the Spot mailing list at
spot@lrde.epita.fr
.
Generated on Sat Dec 6 2014 12:28:43 for spot by
1.8.4