VirtualFluids 0.2.0
Parallel CFD LBM Solver
Loading...
Searching...
No Matches
ub_system Namespace Reference

Classes

class  IfThenElse
 
class  IfThenElse< false, Ta, Tb >
 
class  IfThenElse< true, Ta, Tb >
 
struct  select1st
 
struct  select2nd
 
struct  type2type
 
struct  ub_static_assert
 
struct  ub_static_assert< true >
 

Functions

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

Function Documentation

◆ bitCheck()

template<typename T >
bool ub_system::bitCheck ( const T value,
const T bitmask 
)
inline

Definition at line 151 of file UbSystem.h.

◆ getBitString()

template<typename T >
std::string ub_system::getBitString ( const T value)
inline

Definition at line 171 of file UbSystem.h.

◆ getCurrentThreadID()

unsigned long ub_system::getCurrentThreadID ( )
inline

Definition at line 392 of file UbSystem.h.

◆ getEnv()

std::string ub_system::getEnv ( const std::string &  var)
inline

Definition at line 238 of file UbSystem.h.

◆ getFilenameFromString()

std::string ub_system::getFilenameFromString ( const std::string &  fileStringWithPath,
bool  withExtension = true 
)
inline

Definition at line 362 of file UbSystem.h.

◆ getMachineName()

std::string ub_system::getMachineName ( )
inline

Definition at line 450 of file UbSystem.h.

◆ getPathFromString()

std::string ub_system::getPathFromString ( const std::string &  fileStringWithPath)
inline

Definition at line 345 of file UbSystem.h.

◆ getProcessID()

int ub_system::getProcessID ( )
inline

Definition at line 381 of file UbSystem.h.

◆ getTimeStamp()

std::string ub_system::getTimeStamp ( )
inline

Definition at line 420 of file UbSystem.h.

◆ isBigEndian()

bool ub_system::isBigEndian ( )
inline

Definition at line 409 of file UbSystem.h.

◆ isDirectory()

bool ub_system::isDirectory ( const std::string &  dir,
const unsigned = 3 
)
inline

Definition at line 248 of file UbSystem.h.

◆ isLittleEndian()

bool ub_system::isLittleEndian ( )
inline

Definition at line 418 of file UbSystem.h.

◆ makeDirectory()

bool ub_system::makeDirectory ( const std::string &  dir)
inline

Definition at line 280 of file UbSystem.h.

◆ removeDirectory()

int ub_system::removeDirectory ( const std::string &  dir)
inline

Definition at line 330 of file UbSystem.h.

◆ setBit()

template<typename T >
void ub_system::setBit ( T value,
const T bitmask 
)
inline

Definition at line 158 of file UbSystem.h.

◆ sleepMs()

void ub_system::sleepMs ( const unsigned int msec)
inline

Definition at line 125 of file UbSystem.h.

◆ sleepS()

void ub_system::sleepS ( const unsigned int sec)
inline

Definition at line 138 of file UbSystem.h.

◆ stringTo()

template<typename T >
T ub_system::stringTo ( const std::string &  s)
inline

Definition at line 185 of file UbSystem.h.

◆ swapByteOrder()

void ub_system::swapByteOrder ( unsigned char toSwap,
int  length 
)
inline

Definition at line 439 of file UbSystem.h.

◆ toLowerString()

std::string ub_system::toLowerString ( const std::string &  str)
inline

Definition at line 217 of file UbSystem.h.

◆ toString()

template<typename T >
std::string ub_system::toString ( const T x,
int  precision = 15 
)
inline

Definition at line 199 of file UbSystem.h.

◆ toUpperString()

std::string ub_system::toUpperString ( const std::string &  str)
inline

Definition at line 208 of file UbSystem.h.

◆ unsetBit()

template<typename T >
void ub_system::unsetBit ( T value,
const T bitmask 
)
inline

Definition at line 164 of file UbSystem.h.