OMSimulatorLib The OMSimulator project is a FMI-based co-simulation environment.

Loading...
Searching...
No Matches
Functions | Variables
Util.h File Reference
`#include <algorithm>`
`#include <cctype>`
`#include <locale>`
`#include <math.h>`
`#include <sstream>`
`#include <string>`
Include dependency graph for Util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Functions
static void | ltrim (std::string &s)
static void | rtrim (std::string &s)
static void | trim (std::string &s)
static bool | almostEqualRelativeAndAbs (double a, double b, double reltol=DOUBLEEQUAL_RELTOL, double abstol=DOUBLEEQUAL_ABSTOL)
template<class T >
void | reverseArray (T *array, unsigned int length)

## Variables
const double | DOUBLEEQUAL_ABSTOL = 1e-10
const double | DOUBLEEQUAL_RELTOL = 1e-5

## Function Documentation

## ◆ almostEqualRelativeAndAbs()

static bool almostEqualRelativeAndAbs | ( | double | a,
|  | double | b,
|  | double | reltol = `DOUBLEEQUAL_RELTOL`,
|  | double | abstol = `DOUBLEEQUAL_ABSTOL`
| ) |  |
| inline static

Here is the caller graph for this function:

## ◆ ltrim()

static void ltrim | ( | std::string & | s | ) |
| inline static

Here is the caller graph for this function:

## ◆ reverseArray()

template<class T >

void reverseArray | ( | T * | array,
|  | unsigned int | length
| ) |  |

Here is the caller graph for this function:

## ◆ rtrim()

static void rtrim | ( | std::string & | s | ) |
| inline static

Here is the caller graph for this function:

## ◆ trim()

static void trim | ( | std::string & | s | ) |
| inline static

Here is the call graph for this function:
Here is the caller graph for this function:

## Variable Documentation

## ◆ DOUBLEEQUAL_ABSTOL

const double DOUBLEEQUAL_ABSTOL = 1e-10

## ◆ DOUBLEEQUAL_RELTOL

const double DOUBLEEQUAL_RELTOL = 1e-5