BWAPI
SPAR/AIModule/BWTA/vendors/CGAL/CGAL/Edge_hash_function.h
Go to the documentation of this file.
00001 // Copyright (c) 2005  INRIA Sophia-Antipolis (France) and
00002 // Notre Dame University (U.S.A.).  All rights reserved.
00003 //
00004 // This file is part of CGAL (www.cgal.org); you may redistribute it under
00005 // the terms of the Q Public License version 1.0.
00006 // See the file LICENSE.QPL distributed with CGAL.
00007 //
00008 // Licensees holding a valid commercial license may use this file in
00009 // accordance with the commercial license agreement provided with the software.
00010 //
00011 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013 //
00014 // $URL: svn+ssh://scm.gforge.inria.fr/svn/cgal/branches/CGAL-3.5-branch/Segment_Delaunay_graph_2/include/CGAL/Edge_hash_function.h $
00015 // $Id: Edge_hash_function.h 28567 2006-02-16 14:30:13Z lsaboret $
00016 // 
00017 //
00018 // Author(s)     : Menelaos Karavelas <mkaravel@cse.nd.edu>
00019 
00020 #ifndef CGAL_EDGE_HASH_FUNCTION_H
00021 #define CGAL_EDGE_HASH_FUNCTION_H
00022 
00023 #include <CGAL/basic.h>
00024 #include <CGAL/Handle_hash_function.h>
00025 
00026 CGAL_BEGIN_NAMESPACE
00027 
00028 
00029 class Edge_hash_function
00030   : public Handle_hash_function
00031 {
00032 private:
00033   typedef Handle_hash_function     Base;
00034 
00035 public:
00036   typedef Base::result_type        result_type;
00037 
00038   template<class Edge>
00039   result_type operator()(const Edge& e) const
00040   {
00041     return (Base::operator()(e.first)) << e.second;
00042   }
00043 };
00044 
00045 
00046 CGAL_END_NAMESPACE
00047 
00048 
00049 #endif // CGAL_EDGE_HASH_FUNCTION_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines