spot  0.9.1
bddlt.hh
Go to the documentation of this file.
00001 // Copyright (C) 2011 Laboratoire de Recherche et Developpement de
00002 // l'Epita (LRDE).
00003 // Copyright (C) 2003, 2004  Laboratoire d'Informatique de Paris 6 (LIP6),
00004 // département Systèmes Répartis Coopératifs (SRC), Université Pierre
00005 // et Marie Curie.
00006 //
00007 // This file is part of Spot, a model checking library.
00008 //
00009 // Spot is free software; you can redistribute it and/or modify it
00010 // under the terms of the GNU General Public License as published by
00011 // the Free Software Foundation; either version 2 of the License, or
00012 // (at your option) any later version.
00013 //
00014 // Spot is distributed in the hope that it will be useful, but WITHOUT
00015 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
00016 // or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
00017 // License for more details.
00018 //
00019 // You should have received a copy of the GNU General Public License
00020 // along with Spot; see the file COPYING.  If not, write to the Free
00021 // Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00022 // 02111-1307, USA.
00023 
00024 #ifndef SPOT_MISC_BDDLT_HH
00025 # define SPOT_MISC_BDDLT_HH
00026 
00027 # include <bdd.h>
00028 # include <functional>
00029 
00030 namespace spot
00031 {
00034   struct bdd_less_than :
00035     public std::binary_function<const bdd&, const bdd&, bool>
00036   {
00037     bool
00038     operator()(const bdd& left, const bdd& right) const
00039     {
00040       return left.id() < right.id();
00041     }
00042   };
00043 
00046   struct bdd_hash :
00047     public std::unary_function<const bdd&, size_t>
00048   {
00049     size_t
00050     operator()(const bdd& b) const
00051     {
00052       return b.id();
00053     }
00054   };
00055 
00056 }
00057 
00058 #endif // SPOT_MISC_BDDLT_HH

Please comment this page and report errors about it on the RefDocComments page.
Generated on Wed May 23 2012 12:06:45 for spot by doxygen 1.7.6.1