00001 /* #start# *********************************************************** 00002 00003 Scheduling Simulator 00004 Lehrstuhl f"ur Effiziente Algorithmen 00005 Technische Universit"at M"unchen 00006 00007 File : $Id: SLedaUserTypes.h,v 1.4 2003/01/08 18:57:11 meierb Exp $ 00008 00009 Purpose : Macros for quick and simple definitions of stuff which is 00010 required to use user classes in LEDA-containers 00011 00012 RCS-Log: 00013 $Log: SLedaUserTypes.h,v $ 00014 Revision 1.4 2003/01/08 18:57:11 meierb 00015 added randomized release times 00016 00017 Revision 1.1.1.1 2002/12/02 22:26:19 meierb 00018 my_schedule 00019 00020 Revision 1.2 2002/11/09 02:51:03 taeubig 00021 Replaced <iostream.h> header inclusion by <iostream>, cerr by std::cerr... 00022 00023 Revision 1.1 2002/08/29 12:59:58 taeubig 00024 Added the sources 00025 00026 Revision 1.3 1999/04/27 13:38:49 schickin 00027 well folks, that's the first demo version that really runs 8-) 00028 00029 Revision 1.2 1999/02/12 11:57:02 hall 00030 nc 00031 00032 Revision 1.1 1999/02/10 16:14:27 schickin 00033 Macros for LEDA-User-Types 00034 00035 00036 * #end# ************************************************************* */ 00037 00038 #ifndef SLEDAUSERTYPES 00039 #define SLEDAUSERTYPES 00040 00041 #include <cassert> 00042 #include <iostream> 00043 00044 #define make_input_op(classname) \ 00045 inline \ 00046 std::istream& operator>>(std::istream& rIs, const classname& rObj) \ 00047 { \ 00048 assert("not implemented" && 0); \ 00049 return rIs; \ 00050 } 00051 00052 #define make_output_op(classname) \ 00053 inline \ 00054 std::ostream& operator<<(std::ostream& rOs, const classname& rObj) \ 00055 { \ 00056 rOs << "*undefined output by make_output_op*" \ 00057 return rOs; \ 00058 } 00059 00060 #endif //SLEDAUSERTYPES