#include <complex>
#include <cstdlib>
#include <iostream>
#include <string>
#include <vector>
#include <memory>
Go to the source code of this file.
Typedefs |
typedef std::complex< double > | comp |
Functions |
void | err (std::string message, std::string function, std::string file, _fatal f) |
void | err (std::string message, std::string function, std::string file, _warning w) |
void | err (std::string message, std::string function, std::string file, const item *p, _fatal f) |
void | err (std::string message, std::string function, std::string file, const item *p, _warning f) |
void | err (std::string message, std::string function, std::string file, std::shared_ptr< item > p, _fatal f) |
void | err (std::string message, std::string function, std::string file, std::shared_ptr< item > p, _warning f) |
void | trim (std::string &curline, const std::string &val="\n\r\t ") |
void | ltoken (std::string &tok, std::string &str, std::string delim=" ") |
std::string | get_unique_name (std::string base="") |
Variables |
static const comp | Id = comp(0, 1) |
constexpr double | D = -.4 |
constexpr double | K = (.1) |
constexpr double | A = (2.0/3.0) |
constexpr double | B = (1.0/3.0) |
constexpr double | tau = (.1) |
constexpr double | Gamma = (.1) |
constexpr double | RTlength = (1.5) |
constexpr double | PI = (3.14159) |
static const _fatal | FATAL_ERROR |
static const _warning | WARNING |
Typedef Documentation
typedef std::complex<double> comp |
Function Documentation
Throws a fatal error, and prints the message, function name, and file name. Afterwards, program exits. err("something failed", "some_func", "folder/some_file.cpp", FATAL_ERROR)–>
A fatal error has occured in functions some_func in file "folder/some_file.cpp" Error message is: Something failed Exiting program
Definition at line 37 of file utils.cpp.
Throws a warning, and prints the message, function name, and file name. Afterwards, program continues. err("something failed", "some_func", "folder/some_file.cpp", WARNING)–>
A non-fatal error has occured in functions some_func in file "folder/some_file.cpp" Error message is: Something failed
Definition at line 54 of file utils.cpp.
Returns a name that has not been created previously be the function, and should not exist in the engine Will almost certainly not be human-readable or printable on a terminal
- Parameters
-
base | The base string with which to generate the new name |
- Returns
- A unique name
Definition at line 227 of file utils.cpp.
Trims specified characters from beginning and end of string " \n \r stuff-we want \t " –> "stuff we want"
- Parameters
-
curline | The string to be trimmed. Is modified by the function. |
val | The characters to be trimmed, are whitespace by default |
Definition at line 164 of file utils.cpp.
Variable Documentation
constexpr double A = (2.0/3.0) |
constexpr double B = (1.0/3.0) |
constexpr double Gamma = (.1) |
constexpr double K = (.1) |
constexpr double PI = (3.14159) |
constexpr double RTlength = (1.5) |
constexpr double tau = (.1) |