Commit Graph

20 Commits

Author SHA1 Message Date
Jørgen Kvalsvik
4f0e6703f0 Remove DynamicState's reliance on TimeMap.
DynamicState assumes the time map is fully populated and stores only
its size (which is the only property it cares about).
2016-10-19 20:38:27 +02:00
Jørgen Kvalsvik
6a0afc8a80 DynamicState::get returns const reference
dynamicstate.get returns a const reference rather than a by-value copy,
in order to be consistent with other container classes.

This introduces a problem for std::vector<bool> with its specialisation,
so all DynamicState<bool> instances has been replaced by
DynamicState<int> and explicit bool conversions.
2016-10-05 09:57:42 +02:00
Joakim Hove
2b1b74d3ae Added method back() to DynamicState() 2016-08-10 16:33:05 +02:00
Magne Sjaastad
393bdb42f2 VS2015 : Added missing include to ssize_t 2016-05-25 10:39:19 +02:00
Joakim Hove
b91c6fdbf3 Added find() method to DynamicState 2016-03-28 18:47:29 +02:00
Jørgen Kvalsvik
f404828d63 Cleans up headers to improve build preformance
This is an effort to improve build performance.  Several includes
scattered across the project are either unused or partially used (i.e.
just used to import a type name, not depending on the actual contents of
the header file).

Replaces a lot of these includes with forward declarations.
2016-01-21 09:22:06 +01:00
Joakim Hove
10a211cf8b Fixed bug in DynamicState when updating default. 2015-08-06 16:58:43 +02:00
Joakim Hove
ddde52ad4c DynamicState::update() will return bool. 2015-07-24 12:40:48 +02:00
Joakim Hove
bc3b9837e0 Renamed DynamicState::add() -> Dynamicstate::update() 2015-07-24 12:40:47 +02:00
Joakim Hove
ef42deeb46 Added method globalReset() to DynamicState<T> 2015-06-08 14:15:03 +02:00
Fredrik Gundersen
15a86bbd34 Changed to be none destructive update of tuning 2015-05-05 12:34:44 +02:00
Fredrik Gundersen
4fb7c16f11 Remove comment 2015-05-05 08:38:09 +02:00
Fredrik Gundersen
b32ba60ec7 Added methods to change TUNING 2015-05-04 13:02:20 +02:00
Joakim Hove
8f277d56ca Added modifiable initial value to DynamicState 2015-04-20 14:04:10 +02:00
Joakim Hove
446a94e97f Added read only operator[] to DynamicState 2015-04-20 14:03:44 +02:00
Andreas Lauser
ea38a25af4 remove all trailing white space
this is just the result of

```
find -iname "*.[ch]pp" | xargs sed -i "s/ *$//"
find opm/parser/share/keywords -type f |  xargs sed -i "s/ *$//"
```

so if it causes conflicts with other patches, the others should get
priority. The rationale behind this patch is that some people tell
their editor to remove white space which leads to larger than
necessary patches...
2014-12-08 16:34:28 +01:00
Joakim Hove
77bed42742 Added method at() to the dynamicstate object to return a const reference. 2014-03-19 07:18:09 +01:00
Joakim Hove
3efe37dc37 Added size() property to DynamicState 2013-11-15 15:58:06 +01:00
Joakim Hove
ddc24927e4 Allow data to be added after the (currently) last TSTEP 2013-11-05 17:58:19 +01:00
Joakim Hove
6d30a6a7fa Added DynamicState template class 2013-11-05 12:57:25 +01:00