working version. needs small amount of placing tweaking to put
[charm.git] / examples / charm++ / typed_reduction / TypedReduction.h
1 #include "TypedReduction.decl.h"
2 class Driver : public CBase_Driver {
3     public: 
4         Driver(CkArgMsg*);
5         void untyped_done(CkReductionMsg* m);
6         void typed_done(int x);
7         void typed_array_done(int* results, int n);
8         void typed_array_done2(int x, int y, int z);
9         void typed_array_done3(int n, double* results);
10     private:
11         CProxy_Worker w;
12 };
13
14 class Worker : public CBase_Worker {
15     public:
16         Worker(void);
17         Worker(CkMigrateMessage* m) {}
18         void reduce();
19         void reduce_array();
20         void reduce_array_doubles();
21 };
22