Jamba
3.2.0
|
Namespaces | |
Collection | |
Concurrent | |
Classes | |
class | Cast |
class | Disposable |
class | Lerp |
struct | Range |
Typedefs | |
using | DPLerp = Lerp< double, double, double > |
template<typename X > | |
using | DPLerpX = Lerp< double, X, double > |
template<typename X , typename Y > | |
using | DPLerpXY = Lerp< double, X, Y > |
template<typename Y > | |
using | DPLerpY = Lerp< double, double, Y > |
using | SPLerp = Lerp< float, float, float > |
template<typename X > | |
using | SPLerpX = Lerp< float, X, float > |
template<typename X , typename Y > | |
using | SPLerpXY = Lerp< float, X, Y > |
template<typename Y > | |
using | SPLerpY = Lerp< float, float, Y > |
Functions | |
template<typename T , typename U > | |
static T | clamp (const U &iValue, const T &iLower, const T &iUpper) |
template<typename T , typename U > | |
static T | clampE (const U &value, const T &lower, const T &upper) |
template<typename T , typename U > | |
static T | clampRange (const U &iValue, const T &iFrom, const T &iTo) |
template<typename X , typename Y > | |
static DPLerpXY< X, Y > | mapRangeDPXY (X iFromLow, X iFromHigh, Y iToLow, Y iToHigh) |
template<typename X , typename Y > | |
static SPLerpXY< X, Y > | mapRangeSPXY (X iFromLow, X iFromHigh, Y iToLow, Y iToHigh) |
static double | mapValueDP (double iValue, double iFromLow, double iFromHigh, double iToLow, double iToHigh, bool iClamp=true) |
template<typename X > | |
static double | mapValueDPX (X iValue, X iFromLow, X iFromHigh, double iToLow, double iToHigh, bool iClamp=true) |
template<typename X , typename Y > | |
static Y | mapValueDPXY (X iValue, X iFromLow, X iFromHigh, Y iToLow, Y iToHigh, bool iClamp=true) |
template<typename Y > | |
static Y | mapValueDPY (double iValue, double iFromLow, double iFromHigh, Y iToLow, Y iToHigh, bool iClamp=true) |
static float | mapValueSP (float iValue, float iFromLow, float iFromHigh, float iToLow, float iToHigh, bool iClamp=true) |
template<typename X > | |
static float | mapValueSPX (X iValue, X iFromLow, X iFromHigh, float iToLow, float iToHigh, bool iClamp=true) |
template<typename X , typename Y > | |
static Y | mapValueSPXY (X iValue, X iFromLow, X iFromHigh, Y iToLow, Y iToHigh, bool iClamp=true) |
template<typename Y > | |
static Y | mapValueSPY (float iValue, float iFromLow, float iFromHigh, Y iToLow, Y iToHigh, bool iClamp=true) |
template<typename TFloat > | |
std::vector< TFloat > | splitFloats (const std::string &iString, char iDelimiter, bool iSkipEmptyEntries=false) |
std::vector< std::string > | splitString (const std::string &iString, char iDelimiter, bool iSkipEmptyEntries) |
template<typename Out > | |
void | splitString (const std::string &iString, char iDelimiter, Out oResult, bool iSkipEmptyEntries=false) |
template<typename TFloat > | |
bool | stringToFloat (const std::string &iString, TFloat &oValue) |
template<typename TFloat > | |
TFloat | stringToFloat (const std::string &iString) |
Variables | |
constexpr auto | mapRangeDP = mapRangeDPXY<double, double> |
template<typename X > | |
constexpr auto | mapRangeDPX = mapRangeDPXY<X, double> |
template<typename Y > | |
constexpr auto | mapRangeDPY = mapRangeDPXY<double, Y> |
constexpr auto | mapRangeSP = mapRangeSPXY<float, float> |
template<typename X > | |
constexpr auto | mapRangeSPX = mapRangeSPXY<X, float> |
template<typename Y > | |
constexpr auto | mapRangeSPY = mapRangeSPXY<float, Y> |
constexpr Steinberg::int32 | MAX_INT32 = 0x7fffffff |
constexpr auto | ZERO_INT32 = static_cast<Steinberg::int32>(0) |
using pongasoft::Utils::DPLerp = typedef Lerp<double, double, double> |
using pongasoft::Utils::DPLerpX = typedef Lerp<double, X, double> |
using pongasoft::Utils::DPLerpXY = typedef Lerp<double, X, Y> |
using pongasoft::Utils::DPLerpY = typedef Lerp<double, double, Y> |
using pongasoft::Utils::SPLerp = typedef Lerp<float, float, float> |
using pongasoft::Utils::SPLerpX = typedef Lerp<float, X, float> |
using pongasoft::Utils::SPLerpXY = typedef Lerp<float, X, Y> |
using pongasoft::Utils::SPLerpY = typedef Lerp<float, float, Y> |
|
inlinestatic |
Make sure that the value remains within its bounds
iLower | the lower bound (must be <= iUpper) |
iUpper | the upper bound (must be >= iLower) |
|
inlinestatic |
Same as clamp except it will actually fail/assert in debug mode. For example can be used to access an array with an index and making sure the index is valid within the array. If it happens in production release then it will no randomly crash the application by accessing random memory.
|
inlinestatic |
Make sure that the value remains within its bounds. The difference with clamp is that iFrom and iTo do not have to be provided in any specific order.
|
inlinestatic |
Convenient shortcut for double precision. See Lerp::mapRange
|
inlinestatic |
Convenient shortcut for single precision. See Lerp::mapRange
|
inlinestatic |
Convenient shortcut for single precision. See Lerp::mapValue
|
inlinestatic |
Convenient shortcut for single precision. See Lerp::mapValue
|
inlinestatic |
Convenient shortcut for single precision. See Lerp::mapValue
|
inlinestatic |
Convenient shortcut for single precision. See Lerp::mapValue
|
inlinestatic |
Convenient shortcut for single precision. See Lerp::mapValue
|
inlinestatic |
Convenient shortcut for single precision. See Lerp::mapValue
|
inlinestatic |
Convenient shortcut for single precision. See Lerp::mapValue
|
inlinestatic |
Convenient shortcut for single precision. See Lerp::mapValue
std::vector<TFloat> pongasoft::Utils::splitFloats | ( | const std::string & | iString, |
char | iDelimiter, | ||
bool | iSkipEmptyEntries = false |
||
) |
Converts the string to a TFloat
std::vector< std::string > pongasoft::Utils::splitString | ( | const std::string & | iString, |
char | iDelimiter, | ||
bool | iSkipEmptyEntries | ||
) |
Split a string according to a delimiter and returns a vector
iString | the string to split |
iDelimiter | the delimiter |
iSkipEmptyEntries | whether to include or not empty entries |
void pongasoft::Utils::splitString | ( | const std::string & | iString, |
char | iDelimiter, | ||
Out | oResult, | ||
bool | iSkipEmptyEntries = false |
||
) |
Split a string according to a delimiter and writes the result into Out (can be a vector, array, etc...)
iString | the string to split |
iDelimiter | the delimiter |
oResult | the result |
iSkipEmptyEntries | whether to include or not empty entries |
bool pongasoft::Utils::stringToFloat | ( | const std::string & | iString, |
TFloat & | oValue | ||
) |
Converts the string to a TFloat (float or double)
TFloat pongasoft::Utils::stringToFloat | ( | const std::string & | iString | ) |
Converts the string to a TFloat
constexpr auto pongasoft::Utils::mapRangeDP = mapRangeDPXY<double, double> |
constexpr auto pongasoft::Utils::mapRangeDPX = mapRangeDPXY<X, double> |
constexpr auto pongasoft::Utils::mapRangeDPY = mapRangeDPXY<double, Y> |
constexpr auto pongasoft::Utils::mapRangeSP = mapRangeSPXY<float, float> |
constexpr auto pongasoft::Utils::mapRangeSPX = mapRangeSPXY<X, float> |
constexpr auto pongasoft::Utils::mapRangeSPY = mapRangeSPXY<float, Y> |
constexpr Steinberg::int32 pongasoft::Utils::MAX_INT32 = 0x7fffffff |
constexpr auto pongasoft::Utils::ZERO_INT32 = static_cast<Steinberg::int32>(0) |