Faster  0.0.4Alpha
Superfastdistributtedcomputing
fddBase.h
1 #ifndef LIBFASTER_FDDBASE_H
2 #define LIBFASTER_FDDBASE_H
3 
4 
5 #include "definitions.h"
6 
7 namespace faster{
8  class fddBase{
9  protected:
10  fddType _kType;
11  fddType _tType;
12  unsigned long int id;
13  unsigned long int totalBlocks;
14  unsigned long int size;
15  std::vector<size_t> dataAlloc;
16  bool cached;
17  public:
18  void setSize(size_t &s){ size = s; }
19  size_t getSize(){ return size; }
20  int getId(){return id;}
21  const std::vector<size_t> & getAlloc(){ return dataAlloc; }
22 
23  fddType tType(){ return _tType; }
24  fddType kType(){ return _kType; }
25 
26  bool isCached(){ return cached; }
27 
28  virtual void discard() = 0;
29  virtual void * getKeyMap(void) = 0;
30  virtual void setKeyMap(void * keyMap) = 0;
31  virtual bool isGroupedByKey() = 0;
32  virtual void setGroupedByKey(bool gbk) = 0;
33 
34  //virtual void * _collect() = 0;
35  };
36 }
37 
38 #endif
Definition: fddBase.h:8
Definition: _workerFdd.h:11