Simpact Cyan
Population based event driven simulation using mNRM
Main Page
Classes
Files
File List
File Members
src
lib
util
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
bool_t
Type to return true/false with error description.
Definition:
booltype.h:25
booltype.h
Generated on Mon Feb 27 2017 10:25:11 for Simpact Cyan by
1.8.11