00001 //*-- Author : Valery Fine 26/01/99 (E-mail: fine@bnl.gov) 00002 #ifndef STAR_St_TableSorter 00003 #define STAR_St_TableSorter 00004 00006 // 00007 // $Id: St_TableSorter.h,v 1.1 2000/02/25 00:48:09 fine Exp $ 00008 // 00009 // St_TableSorter - Is an "observer" class to sort the St_Table objects 00010 // The class provides an interface to the standard "C/C++" 00011 // 00012 // qsort and bsearch subroutine (for further information see your local C/C++ docs) 00013 // ===== ======= 00014 // 00015 // - This class DOESN'T change / touch the "host" table itself 00016 // For any St_Table object one can create as many different "sorter" 00017 // as he/she finds useful for his/her code 00018 // - Any instance of this class is meaningful as long as the "host" object 00019 // "St_Table" does exist and is not changed 00020 // - Any attempt to access this St_TableSorter after the "host" object deleted 00021 // causes the program abnormal termination 00022 // - Any attempt to access this St_TableSorter after the "host" object been changed 00023 // causes an unpredictable result 00024 // - Any instance (object) of this class is NOT deleted "by automatic" just 00025 // the "host object "St_Table" deleted. It is the responsibility of the user's code 00026 // keeping St_TableSorter and the the "host" St_Table objects consistent. 00027 // 00029 00030 #include "StTypeDefs.h" 00031 #include <TTableSorter.h> 00032 00033 //______________________________________________________________________ 00034 // $Log: St_TableSorter.h,v $ 00035 // Revision 1.1 2000/02/25 00:48:09 fine 00036 // temporary interface for ROOT 2.23/12 with STAR classes inside 00037 // 00038 // Revision 1.24 2000/01/12 02:19:22 fine 00039 // new ctor with a pointer to St_Table provided, internal ref to St_Table has been replaced with a regular pointer 00040 // 00041 // Revision 1.23 2000/01/12 01:24:53 fine 00042 // several methods to use St_Table class from the <converted> C program to C++ 00043 // 00044 // Revision 1.22 1999/12/05 06:34:17 fine 00045 // Several const methods for St_TableSorter introduced 00046 // 00047 // Revision 1.21 1999/12/04 22:41:37 fine 00048 // clean up sole const methods 00049 // 00050 // Revision 1.20 1999/12/01 14:03:35 fine 00051 // operator[] fixed for mixed types 00052 // 00053 // Revision 1.19 1999/12/01 01:40:04 fine 00054 // new access method with the Long_t parameter has been introduced to avoid the wrong cast from (long) to (double) in CINT 00055 // 00056 // Revision 1.18 1999/08/09 01:38:55 fine 00057 // New method GetKeyAddress has been introduced 00058 // 00059 // Revision 1.17 1999/05/18 17:59:22 fine 00060 // Clean up and some comments 00061 // 00062 // Revision 1.16 1999/05/18 14:41:29 fine 00063 // New methods: CountKey(), CountKeys(), FindFirstKey() have beent introduced 00064 // 00065 // Revision 1.15 1999/05/14 22:20:56 fine 00066 // CountKey and CountKeys methods have been introduced 00067 // 00068 // Revision 1.14 1999/05/14 00:30:38 fine 00069 // GetLastFound method has been introduced 00070 // 00071 //______________________________________________________________________ 00072 00073 #endif
1.5.9