Commit 5ec2f8b7 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

* python/buddy.i: Add a hash function for BDDs.

parent e471d4e6
// -*- 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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment