File indexing completed on 2025-02-21 10:05:33
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 #ifndef CERN_SMAP
0023 #define CERN_SMAP
0024
0025
0026 #include "cern_types.h"
0027 #include "hash_int_table.h"
0028 #include "svec.h"
0029
0030 typedef struct _smap_struct_ {
0031 int fSize;
0032 int fEntries;
0033 SVec fV;
0034 HashIntTable fT;
0035 } SMapStruct;
0036
0037 typedef SMapStruct *SMap;
0038
0039
0040 extern SMap
0041 smap_new( int max );
0042
0043 extern SMap
0044 smap_copy( SMap old );
0045
0046 extern int
0047 smap_add( SMap st, String s );
0048
0049 extern int
0050 smap_entries( SMap st );
0051
0052 extern String
0053 smap_get( SMap st, const int i );
0054
0055 extern bool
0056 smap_map( SMap st, String s, int * ip );
0057
0058 extern void
0059 smap_del( SMap st );
0060
0061 #endif