Mercurial > hg > audiodb
comparison lshlib.h @ 483:7b24f2b423cc memory-leaks
added virtual keyword to destructors in lshlib.h (for future use)
author | mas01mc |
---|---|
date | Sat, 10 Jan 2009 13:24:36 +0000 |
parents | f283448a40db |
children | 6439cfba2524 |
comparison
equal
deleted
inserted
replaced
482:bf54b8fa7d89 | 483:7b24f2b423cc |
---|---|
242 | 242 |
243 public: | 243 public: |
244 | 244 |
245 H(); | 245 H(); |
246 H(Uns32T k, Uns32T m, Uns32T d, Uns32T N, Uns32T C, float w, float r); | 246 H(Uns32T k, Uns32T m, Uns32T d, Uns32T N, Uns32T C, float w, float r); |
247 ~H(); | 247 virtual ~H(); |
248 | 248 |
249 float get_w(){return w;} | 249 float get_w(){return w;} |
250 float get_radius(){return radius;} | 250 float get_radius(){return radius;} |
251 Uns32T get_numRows(){return N;} | 251 Uns32T get_numRows(){return N;} |
252 Uns32T get_numCols(){return C;} | 252 Uns32T get_numCols(){return C;} |
339 ReporterCallbackPtr add_point_callback; // Pointer to the callback function | 339 ReporterCallbackPtr add_point_callback; // Pointer to the callback function |
340 | 340 |
341 public: | 341 public: |
342 G(char* lshFile, bool lshInCore = false); // unserialize constructor | 342 G(char* lshFile, bool lshInCore = false); // unserialize constructor |
343 G(float w, Uns32T k,Uns32T m, Uns32T d, Uns32T N, Uns32T C, float r); // core constructor | 343 G(float w, Uns32T k,Uns32T m, Uns32T d, Uns32T N, Uns32T C, float r); // core constructor |
344 ~G(); | 344 virtual ~G(); |
345 | 345 |
346 Uns32T insert_point(vector<float>&, Uns32T pointID); | 346 Uns32T insert_point(vector<float>&, Uns32T pointID); |
347 void insert_point_set(vector<vector<float> >& vv, Uns32T basePointID); | 347 void insert_point_set(vector<vector<float> >& vv, Uns32T basePointID); |
348 | 348 |
349 // point retrieval from core | 349 // point retrieval from core |