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>`

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

## ◆ ltrim()

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

## ◆ reverseArray()

template<class T >

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

## ◆ rtrim()

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

## ◆ trim()

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

## Variable Documentation

## ◆ DOUBLEEQUAL_ABSTOL

const double DOUBLEEQUAL_ABSTOL = 1e-10

## ◆ DOUBLEEQUAL_RELTOL

const double DOUBLEEQUAL_RELTOL = 1e-5