VR-Engage  2.2
Loading...
Searching...
No Matches
utilFunctions.h File Reference
Include dependency graph for utilFunctions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  makVre::DtFileString
 

Namespaces

namespace  makVre
 

Typedefs

using makVre::UInt16 = unsigned short
 
using makVre::Int16 = short
 
using makVre::UInt32 = unsigned long
 
using makVre::Int32 = long
 
using makVre::UInt64 = unsigned long long
 
using makVre::Int64 = long long
 

Functions

bool UTIL_DLL makVre::DtInitializeTimer ()
 
UInt64 UTIL_DLL makVre::DtVreTimestamp ()
 
double UTIL_DLL makVre::DtWallClockTime ()
 
unsigned int UTIL_DLL makVre::DtGetThreadId ()
 
bool UTIL_DLL makVre::DtIsEnvironmentVariableSet (const std::string &env, const std::string &testValue="")
 
bool UTIL_DLL makVre::findArg (const char *arg, int argc, char **argv, const char *param[])
 
bool UTIL_DLL makVre::findArg (const char *arg, int argc, char **argv)
 
std::string UTIL_DLL makVre::rtoa (float r)
 
std::vector< std::string > UTIL_DLL makVre::tokenize (const std::string &string, const std::string &delimiter=" ")
 
std::string UTIL_DLL makVre::trim (const std::string &str)
 
std::string UTIL_DLL makVre::subStrRangeReplaced (const std::string &string, const std::string &start, const std::string &end, const std::string &replacement)
 
void UTIL_DLL makVre::replaceSubStrRange (std::string &string, const std::string &start, const std::string &end, const std::string &replacement)
 
std::string UTIL_DLL makVre::subStrReplaced (const std::string &string, const std::string &target, const std::string &replacement)
 
void UTIL_DLL makVre::replaceSubStr (std::string &string, const std::string &target, const std::string &replacement)
 
std::string UTIL_DLL makVre::lengthClamped (const std::string &string, size_t length, const std::string &tail="...")
 
void UTIL_DLL makVre::clampLength (std::string &string, size_t length, const std::string &tail="...")
 
void UTIL_DLL makVre::makeLower (std::string &str)
 
std::string UTIL_DLL makVre::lowerCase (const std::string &in)
 
double UTIL_DLL makVre::clampToPrecision (double val, double precision)
 
DtVector UTIL_DLL makVre::clampToPrecision (DtVector val, double precision)
 
DtTaitBryan UTIL_DLL makVre::clampToPrecision (DtTaitBryan val, double precision)
 
template<class T>
makVre::clampValue (T value, T min, T max)
 
template int UTIL_DLL makVre::clampValue< int > (int, int, int)
 
template float UTIL_DLL makVre::clampValue< float > (float, float, float)
 
template double UTIL_DLL makVre::clampValue< double > (double, double, double)
 
int UTIL_DLL makVre::randomInt (int min, int max)
 
double UTIL_DLL makVre::randReal (double min, double max)
 
bool UTIL_DLL makVre::stob (const std::string &in)
 
int UTIL_DLL makVre::stoi (const std::string &in)
 
long UTIL_DLL makVre::stol (const std::string &in)
 
unsigned long UTIL_DLL makVre::stoul (const std::string &in)
 
long long UTIL_DLL makVre::stoll (const std::string &in)
 
unsigned long long UTIL_DLL makVre::stoull (const std::string &in)
 
float UTIL_DLL makVre::stof (const std::string &in)
 
double UTIL_DLL makVre::stod (const std::string &in)
 
void UTIL_DLL makVre::fixMissingBoostClosingTag (DtString &xml)
 
template<class Signal, class F>
boost::signals2::connection makVre::connectOnce (Signal &sig, F &&f)
 
template<class Signal, class F>
boost::signals2::connection makVre::connectOnceFront (Signal &sig, F &&f)
 

Variables

double makVre::invFreq
 
UInt64 makVre::ticksPerSecond
 
bool makVre::timerIsInitialized
 

Detailed Description

This file contains various utility functions for timing, string manipulation, mathematical operations, and type conversions that are used throughout the VREngage codebase.