OPAL (Object Oriented Parallel Accelerator Library)  2024.1
OPAL
Namespaces | Macros | Functions
Util.cpp File Reference
#include "Utilities/Util.h"
#include "OPALrevision.h"
#include "Utilities/OpalException.h"
#include <boost/regex.hpp>
#include <cctype>
#include <fstream>
#include <filesystem>
#include <iostream>
#include <iterator>
#include <queue>
Include dependency graph for Util.cpp:

Go to the source code of this file.

Namespaces

 Util
 

Macros

#define erfinv_a3   -0.140543331
 
#define erfinv_a2   0.914624893
 
#define erfinv_a1   -1.645349621
 
#define erfinv_a0   0.886226899
 
#define erfinv_b4   0.012229801
 
#define erfinv_b3   -0.329097515
 
#define erfinv_b2   1.442710462
 
#define erfinv_b1   -2.118377725
 
#define erfinv_b0   1
 
#define erfinv_c3   1.641345311
 
#define erfinv_c2   3.429567803
 
#define erfinv_c1   -1.62490649
 
#define erfinv_c0   -1.970840454
 
#define erfinv_d2   1.637067800
 
#define erfinv_d1   3.543889200
 
#define erfinv_d0   1
 

Functions

std::string Util::getGitRevision ()
 
double Util::erfinv (double x)
 
Vector_t Util::getTaitBryantAngles (Quaternion rotation, const std::string &)
 
std::string Util::toUpper (const std::string &str)
 
std::string Util::boolToUpperString (const bool &b)
 
std::string Util::boolVectorToUpperString (const std::vector< bool > &b)
 
std::string Util::doubleVectorToString (const std::vector< double > &v)
 
std::string Util::combineFilePath (std::initializer_list< std::string > ilist)
 
void Util::checkInt (double real, std::string name, double tolerance)
 
bool Util::isAllDigits (const std::string &str)
 
unsigned int Util::rewindLinesSDDS (const std::string &fileName, double maxSPos, bool checkForTime)
 rewind the SDDS file such that the spos of the last step is less or equal to maxSPos More...
 
std::string Util::base64_encode (const std::string &string_to_encode)
 
std::string Util::base64_decode (std::string const &encoded_string)
 

Macro Definition Documentation

#define erfinv_a0   0.886226899

Definition at line 40 of file Util.cpp.

Referenced by Util::erfinv().

#define erfinv_a1   -1.645349621

Definition at line 39 of file Util.cpp.

Referenced by Util::erfinv().

#define erfinv_a2   0.914624893

Definition at line 38 of file Util.cpp.

Referenced by Util::erfinv().

#define erfinv_a3   -0.140543331

Definition at line 37 of file Util.cpp.

Referenced by Util::erfinv().

#define erfinv_b0   1

Definition at line 46 of file Util.cpp.

Referenced by Util::erfinv().

#define erfinv_b1   -2.118377725

Definition at line 45 of file Util.cpp.

Referenced by Util::erfinv().

#define erfinv_b2   1.442710462

Definition at line 44 of file Util.cpp.

Referenced by Util::erfinv().

#define erfinv_b3   -0.329097515

Definition at line 43 of file Util.cpp.

Referenced by Util::erfinv().

#define erfinv_b4   0.012229801

Definition at line 42 of file Util.cpp.

Referenced by Util::erfinv().

#define erfinv_c0   -1.970840454

Definition at line 51 of file Util.cpp.

Referenced by Util::erfinv().

#define erfinv_c1   -1.62490649

Definition at line 50 of file Util.cpp.

Referenced by Util::erfinv().

#define erfinv_c2   3.429567803

Definition at line 49 of file Util.cpp.

Referenced by Util::erfinv().

#define erfinv_c3   1.641345311

Definition at line 48 of file Util.cpp.

Referenced by Util::erfinv().

#define erfinv_d0   1

Definition at line 55 of file Util.cpp.

Referenced by Util::erfinv().

#define erfinv_d1   3.543889200

Definition at line 54 of file Util.cpp.

Referenced by Util::erfinv().

#define erfinv_d2   1.637067800

Definition at line 53 of file Util.cpp.

Referenced by Util::erfinv().