VERB4D
|
Same functionality as matrices found in Matrix.h but can also be updated from ini-files. More...
#include <string>
#include <istream>
#include <sstream>
#include <vector>
#include "Matrix.h"
#include "Logger.h"
Go to the source code of this file.
Classes | |
class | UpdatableMatrix< MatrixND > |
A matrix that can be created in 1, 2, 3, or 4 dimensions with the ability to be updated. More... | |
class | UpdatableListMatrix< MatrixND > |
A matrix that can be created in 1, 2, 3, or 4 dimensions with the ability to be updated. More... | |
Functions | |
string | GetCurrentTimeValue (string filename, double current_time, double &update_time) |
bool | is_number (const std::string &s) |
double | stringToValue (string string_value, double current_time) |
FUNCTION NOT IMPLEMENTED. | |
Same functionality as matrices found in Matrix.h but can also be updated from ini-files.
string GetCurrentTimeValue | ( | string | filename, |
double | current_time, | ||
double & | update_time | ||
) |
Search for current time-step in an update-file and return the corresponding value
filename | - filename to check. Also can be just a value - then we just return this value! |
current_time | - the time we're searching for |
update_time | - this is a return value! It is the time we've found! |
bool is_number | ( | const std::string & | s | ) |
Check if a string is number
Note: Will accept any string (even badly formatted ones) consisting entirely of the following: Numbers, . , e , - , +
For example 1.2.3-e.4 will be accepted
s | - the string we need to check |