Mercurial > hg > audiodb
view accumulator.h @ 423:b09d2eb1a2b2 api-inversion
Cheap hackery abounds.
Include an accumulator into the query_loop chain. Somewhat
surprisingly, very few tests fail, and those that do are due to
over-specific reporting requirements in the case of ties, so rewrite
those tests to be more permissive.
There are probably codepaths which ignore the accumulator completely;
they will still work, because the accumulator will return zero points
when it is asked to ->get_points().
author | mas01cr |
---|---|
date | Wed, 24 Dec 2008 10:55:08 +0000 |
parents | a7d61291fbda |
children |
line wrap: on
line source
#ifndef ACCUMULATOR_H #define ACCUMULATOR_H class Accumulator { public: virtual ~Accumulator() {}; virtual void add_point(adb_result_t *r) = 0; virtual adb_query_results_t *get_points() = 0; }; #endif