Faster  0.0.4Alpha
Superfastdistributtedcomputing
fddStorageBase.h
1 #ifndef LIBFASTER_FDDSTORAGEBASE_H
2 #define LIBFASTER_FDDSTORAGEBASE_H
3 
4 #include <cstdlib>
5 #include <iostream>
6 
7 #include "definitions.h"
8 
9 namespace faster{
11  protected:
12  size_t size;
13  size_t allocSize;
14 
15  public:
16  virtual ~fddStorageBase(){}
17 
18  virtual void grow(size_t toSize) = 0;
19 
20  size_t getSize(){ return size; }
21 
22  //void setSize(size_t s){ this->grow(s); size = s; }
23  virtual void setSize(size_t s UNUSED) { std::cerr << "OPS! " << s; }
24  };
25 }
26 
27 #endif
Definition: _workerFdd.h:11
Definition: fddStorageBase.h:10