view accumulator.h @ 457:823bca1e10f5 api-inversion

Sketch out a "query state" structure. As yet it's completely unused, but the intention is that accumulated state will be collected into one of these structures for each query, and then passed around, to help reduce the need for silly arglists. It's possible that this structure will also grow a pointer to the adb itself, and be the thing passed to the LSH callback; we'll see how that develops.
author mas01cr
date Wed, 24 Dec 2008 10:57:30 +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