Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

general/ledaPtrSet.h

Go to the documentation of this file.
00001 /* #start# ***********************************************************
00002 
00003            Scheduling Simulator
00004         Lehrstuhl f"ur Effiziente Algorithmen
00005            Technische Universit"at M"unchen
00006 
00007  File    : $Id: ledaPtrSet.h,v 1.3 2003/01/08 18:57:12 meierb Exp $
00008 
00009  Purpose : include this file if you want to use a LEDA-set which contains
00010  pointers. Two entries are equal if the pointers are equal, not the data
00011  the point to!
00012 
00013  RCS-Log:
00014  $Log: ledaPtrSet.h,v $
00015  Revision 1.3  2003/01/08 18:57:12  meierb
00016  added randomized release times
00017 
00018  Revision 1.1.1.1  2002/12/02 22:26:19  meierb
00019  my_schedule
00020 
00021  Revision 1.1  2002/08/29 12:59:58  taeubig
00022  Added the sources
00023 
00024  Revision 1.1  1999/03/30 14:46:33  schickin
00025  sets of pointers for leda added
00026 
00027 
00028  * #end# ************************************************************* */
00029 
00030 #ifndef LEDAPTRSET_H
00031 #define LEDAPTRSET_H
00032 
00033 #include <LEDA/set.h>
00034 
00035 #define DEFINE_PTR_COMPARE(T) \
00036   inline int compare(T* p1, T* p2) \
00037   { \
00038     if (p1 < p2) \
00039       return -1; \
00040     else if (p1 == p2) \
00041       return 0; \
00042     else \
00043       return 1; \
00044   }
00045 
00046 #endif /* LEDAPTRSET_H */
00047 

Generated on Thu May 22 16:48:08 2003 for Sketch-it! by doxygen1.2.18