Mercurial > hg > audiodb
annotate accumulator.h @ 541:52d82badc544 multiprobeLSH
Added file caching for sparse datum reads. This required making a new type called adb_fd_cache_t and modifying the read methods audiodb_track_id_datum() and audiodb_insert_create_datum() to use the cache struct if one is provided by the user.
author | mas01mc |
---|---|
date | Sat, 07 Feb 2009 16:59:31 +0000 |
parents | 342822c2d49a |
children |
rev | line source |
---|---|
mas01cr@498 | 1 #ifndef ACCUMULATOR_H |
mas01cr@498 | 2 #define ACCUMULATOR_H |
mas01cr@498 | 3 |
mas01cr@498 | 4 class Accumulator { |
mas01cr@498 | 5 public: |
mas01cr@498 | 6 virtual ~Accumulator() {}; |
mas01cr@498 | 7 virtual void add_point(adb_result_t *r) = 0; |
mas01cr@498 | 8 virtual adb_query_results_t *get_points() = 0; |
mas01cr@498 | 9 }; |
mas01cr@498 | 10 |
mas01cr@498 | 11 #endif |