Simpact Cyan
Population based event driven simulation using mNRM
gridvalues.h
1 #ifndef GRIDVALUES_H
2 
3 #define GRIDVALUES_H
4 
5 #include "booltype.h"
6 #include <assert.h>
7 #include <vector>
8 
9 class GridValues
10 {
11 public:
12  GridValues() { }
13  virtual ~GridValues() { }
14 
15  virtual bool_t init(const std::string &fileName, bool noNegativeValues = true, bool flipY = false) = 0;
16  virtual int getWidth() const = 0;
17  virtual int getHeight() const = 0;
18  virtual double getValue(int x, int y) const = 0;
19  virtual void setValue(int x, int y, double v) = 0;
20  virtual bool isYFlipped() const = 0;
21 };
22 
23 #endif // GRIDVALUES_H
Type to return true/false with error description.
Definition: booltype.h:25