VirtualFluids 0.2.0
Parallel CFD LBM Solver
Loading...
Searching...
No Matches
UbSystem.h File Reference
#include <algorithm>
#include <cctype>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include <typeinfo>
#include <basics/utilities/UbException.h>
#include <basics/utilities/UbLogger.h>

Go to the source code of this file.

Classes

struct  ub_system::ub_static_assert< true >
 
class  ub_system::IfThenElse< true, Ta, Tb >
 
class  ub_system::IfThenElse< false, Ta, Tb >
 
struct  ub_system::type2type< T >
 
struct  ub_system::select1st< Pair >
 
struct  ub_system::select2nd< Pair >
 

Namespaces

namespace  ub_system
 

Macros

#define _QUOTEME(x)   #x
 
#define QUOTEME(x)   _QUOTEME(x)
 
#define UB_STATIC_ASSERT(expr)   static_cast<void>(sizeof(ub_system::ub_static_assert<expr>));
 

Functions

void ub_system::sleepMs (const unsigned int &msec)
 
void ub_system::sleepS (const unsigned int &sec)
 
template<typename T >
bool ub_system::bitCheck (const T &value, const T &bitmask)
 
template<typename T >
void ub_system::setBit (T &value, const T &bitmask)
 
template<typename T >
void ub_system::unsetBit (T &value, const T &bitmask)
 
template<typename T >
std::string ub_system::getBitString (const T &value)
 
template<typename T >
T ub_system::stringTo (const std::string &s)
 
template<typename T >
std::string ub_system::toString (const T &x, int precision=15)
 
std::string ub_system::toUpperString (const std::string &str)
 
std::string ub_system::toLowerString (const std::string &str)
 
std::string ub_system::getEnv (const std::string &var)
 
bool ub_system::isDirectory (const std::string &dir, const unsigned &=3)
 
bool ub_system::makeDirectory (const std::string &dir)
 
int ub_system::removeDirectory (const std::string &dir)
 
std::string ub_system::getPathFromString (const std::string &fileStringWithPath)
 
std::string ub_system::getFilenameFromString (const std::string &fileStringWithPath, bool withExtension=true)
 
int ub_system::getProcessID ()
 
unsigned long ub_system::getCurrentThreadID ()
 
bool ub_system::isBigEndian ()
 
bool ub_system::isLittleEndian ()
 
std::string ub_system::getTimeStamp ()
 
void ub_system::swapByteOrder (unsigned char *toSwap, int length)
 
std::string ub_system::getMachineName ()