comparison lshlib.h @ 512:6439cfba2524 memory-leaks

Implemented correct LSH table via compile-time switch -DLSH_DUMP_CORE_TABLES. Dumps on LSH load.
author mas01mc
date Fri, 23 Jan 2009 18:45:44 +0000
parents 7b24f2b423cc
children 01cb73dfcddd
comparison
equal deleted inserted replaced
502:eb9a7ef110c1 512:6439cfba2524
323 323
324 // Core Retrieval/Inspections Functions 324 // Core Retrieval/Inspections Functions
325 void bucket_chain_point(bucket* p, Uns32T qpos); 325 void bucket_chain_point(bucket* p, Uns32T qpos);
326 void sbucket_chain_point(sbucket* p, Uns32T qpos); 326 void sbucket_chain_point(sbucket* p, Uns32T qpos);
327 void dump_hashtable_row(bucket* p); 327 void dump_hashtable_row(bucket* p);
328 void dump_core_hashtable_array(Uns32T* p);
328 329
329 // Serial (Format 1) Retrieval/Inspection Functions 330 // Serial (Format 1) Retrieval/Inspection Functions
330 void serial_bucket_chain_point(SerialElementT* pe, Uns32T qpos); 331 void serial_bucket_chain_point(SerialElementT* pe, Uns32T qpos);
331 void serial_bucket_dump(SerialElementT* pe); 332 void serial_bucket_dump(SerialElementT* pe);
332 333
359 360
360 SerialHeaderT* get_lshHeader(){return lshHeader;} 361 SerialHeaderT* get_lshHeader(){return lshHeader;}
361 void serial_dump_tables(char* filename); 362 void serial_dump_tables(char* filename);
362 float get_mean_collision_rate(){ return (float) pointCount / bucketCount ; } 363 float get_mean_collision_rate(){ return (float) pointCount / bucketCount ; }
363 char* get_indexName(){return indexName;} 364 char* get_indexName(){return indexName;}
365 void dump_hashtables();
366
364 }; 367 };
365 368
366 typedef class G LSH; 369 typedef class G LSH;
367 370
368 371