Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
5ec2f8b7
Commit
5ec2f8b7
authored
Feb 23, 2016
by
Alexandre Duret-Lutz
Browse files
* python/buddy.i: Add a hash function for BDDs.
parent
e471d4e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/buddy.i
View file @
5ec2f8b7
// -*- coding: utf-8 -*-
// Copyright (C) 2010, 2011, 2012, 2014 Laboratoire de Recherche et
// Copyright (C) 2010, 2011, 2012, 2014
, 2016
Laboratoire de Recherche et
// Développement de l'EPITA.
// Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
...
...
@@ -236,6 +236,7 @@ extern const bdd bddtrue;
bool
__ge__
(
bdd
*
b
)
{
return
self-
>
id
()
>=
b-
>
id
()
;
}
bool
__gt__
(
bdd
*
b
)
{
return
self-
>
id
()
>
b-
>
id
()
;
}
size_t
__hash__
()
{
return
self-
>
id
()
;
}
std
::
string
__str__
(
void
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment