|
LMMS
|
Namespaces | |
| namespace | MidiBufferHelpers |
| namespace | MidiFileHelpers |
| namespace | MidiHelpers |
| namespace | TimeHelpers |
| namespace | Time |
| namespace | GraphRenderingOps |
| namespace | NumberToStringConverters |
| namespace | StringHelpers |
| namespace | TypeHelpers |
| namespace | XmlIdentifierChars |
| namespace | XmlOutputFunctions |
Typedefs | |
| typedef uint32 | water_uchar |
| typedef signed char | int8 |
| typedef unsigned char | uint8 |
| typedef signed short | int16 |
| typedef unsigned short | uint16 |
| typedef signed int | int32 |
| typedef unsigned int | uint32 |
| typedef long long | int64 |
| typedef unsigned long long | uint64 |
| typedef int | pointer_sized_int |
| typedef unsigned int | pointer_sized_uint |
Functions | |
| template<class ElementType, class ElementComparator> | |
| static void | sortArray (ElementComparator &comparator, ElementType *const array, int firstElement, int lastElement, const bool retainOrderOfEquivalentItems) |
| template<class ElementType, class ElementComparator> | |
| static int | findInsertIndexInSortedArray (ElementComparator &comparator, ElementType *const array, const ElementType newElement, int firstElement, int lastElement) |
| static String | removeEllipsis (const String &path) |
| static int | compareFilenames (const String &name1, const String &name2) noexcept |
| static int | countNumberOfSeparators (CharPointer_UTF8 s) |
| File | water_getExecutableFile () |
| static String | getLinkedFile (const String &file) |
| static int64 | water_fileSetPosition (void *handle, int64 pos) |
| static File | createTempFile (const File &parentDirectory, String name, const String &suffix, const int optionFlags) |
| template<typename Type> | |
| Type | jmax (const Type a, const Type b) |
| template<typename Type> | |
| Type | jmax (const Type a, const Type b, const Type c) |
| template<typename Type> | |
| Type | jmax (const Type a, const Type b, const Type c, const Type d) |
| template<typename Type> | |
| Type | jmin (const Type a, const Type b) |
| template<typename Type> | |
| Type | jmin (const Type a, const Type b, const Type c) |
| template<typename Type> | |
| Type | jmin (const Type a, const Type b, const Type c, const Type d) |
| template<typename Type> | |
| Type | jmap (Type value0To1, Type targetRangeMin, Type targetRangeMax) |
| template<typename Type> | |
| Type | jmap (Type sourceValue, Type sourceRangeMin, Type sourceRangeMax, Type targetRangeMin, Type targetRangeMax) |
| template<typename Type> | |
| Type | findMinimum (const Type *data, int numValues) |
| template<typename Type> | |
| Type | findMaximum (const Type *values, int numValues) |
| template<typename Type> | |
| void | findMinAndMax (const Type *values, int numValues, Type &lowest, Type &highest) |
| template<typename Type> | |
| Type | jlimit (const Type lowerLimit, const Type upperLimit, const Type valueToConstrain) noexcept |
| template<typename Type> | |
| bool | isPositiveAndBelow (Type valueToTest, Type upperLimit) noexcept |
| template<> | |
| bool | isPositiveAndBelow (const int valueToTest, const int upperLimit) noexcept |
| template<typename Type> | |
| bool | isPositiveAndNotGreaterThan (Type valueToTest, Type upperLimit) noexcept |
| template<> | |
| bool | isPositiveAndNotGreaterThan (const int valueToTest, const int upperLimit) noexcept |
| template<typename Type> | |
| void | swapVariables (Type &variable1, Type &variable2) |
| template<typename Type1> | |
| void | ignoreUnused (const Type1 &) noexcept |
| template<typename Type1, typename Type2> | |
| void | ignoreUnused (const Type1 &, const Type2 &) noexcept |
| template<typename Type1, typename Type2, typename Type3> | |
| void | ignoreUnused (const Type1 &, const Type2 &, const Type3 &) noexcept |
| template<typename Type1, typename Type2, typename Type3, typename Type4> | |
| void | ignoreUnused (const Type1 &, const Type2 &, const Type3 &, const Type4 &) noexcept |
| template<typename Type, size_t N> | |
| size_t | numElementsInArray (Type(&array)[N]) |
| template<typename Type> | |
| Type | water_hypot (Type a, Type b) noexcept |
| template<> | |
| float | water_hypot (float a, float b) noexcept |
| int64 | abs64 (const int64 n) noexcept |
| float | degreesToRadians (float degrees) noexcept |
| double | degreesToRadians (double degrees) noexcept |
| float | radiansToDegrees (float radians) noexcept |
| double | radiansToDegrees (double radians) noexcept |
| template<typename NumericType> | |
| bool | water_isfinite (NumericType) noexcept |
| template<> | |
| bool | water_isfinite (float value) noexcept |
| template<> | |
| bool | water_isfinite (double value) noexcept |
| template<typename FloatType> | |
| int | roundToInt (const FloatType value) noexcept |
| int | roundToInt (int value) noexcept |
| int | roundToIntAccurate (double value) noexcept |
| int | roundDoubleToInt (double value) noexcept |
| int | roundFloatToInt (float value) noexcept |
| template<typename IntegerType> | |
| bool | isPowerOfTwo (IntegerType value) |
| int | nextPowerOfTwo (int n) noexcept |
| int | findHighestSetBit (uint32 n) noexcept |
| int | countNumberOfBits (uint32 n) noexcept |
| int | countNumberOfBits (uint64 n) noexcept |
| template<typename IntegerType> | |
| IntegerType | negativeAwareModulo (IntegerType dividend, const IntegerType divisor) noexcept |
| template<typename NumericType> | |
| NumericType | square (NumericType n) noexcept |
| void | writeLittleEndianBitsInBuffer (void *targetBuffer, uint32 startBit, uint32 numBits, uint32 value) noexcept |
| uint32 | readLittleEndianBitsInBuffer (const void *sourceBuffer, uint32 startBit, uint32 numBits) noexcept |
| void | zeromem (void *memory, size_t numBytes) noexcept |
| template<typename Type> | |
| void | zerostruct (Type &structure) noexcept |
| template<typename Type> | |
| void | deleteAndZero (Type &pointer) |
| template<typename Type, typename IntegerType> | |
| Type * | addBytesToPointer (Type *basePointer, IntegerType bytes) noexcept |
| template<typename Type1, typename Type2> | |
| int | getAddressDifference (Type1 *pointer1, Type2 *pointer2) noexcept |
| template<class Type> | |
| Type * | createCopyIfNotNull (const Type *objectToCopy) |
| template<typename Type> | |
| Type | readUnaligned (const void *srcPtr) noexcept |
| template<typename Type> | |
| void | writeUnaligned (void *dstPtr, Type value) noexcept |
| template<typename ReferenceCountedObjectClass> | |
| bool | operator== (const ReferenceCountedObjectPtr< ReferenceCountedObjectClass > &object1, ReferenceCountedObjectClass *const object2) noexcept |
| template<typename ReferenceCountedObjectClass> | |
| bool | operator== (const ReferenceCountedObjectPtr< ReferenceCountedObjectClass > &object1, const ReferenceCountedObjectPtr< ReferenceCountedObjectClass > &object2) noexcept |
| template<typename ReferenceCountedObjectClass> | |
| bool | operator== (ReferenceCountedObjectClass *object1, const ReferenceCountedObjectPtr< ReferenceCountedObjectClass > &object2) noexcept |
| template<typename ReferenceCountedObjectClass> | |
| bool | operator!= (const ReferenceCountedObjectPtr< ReferenceCountedObjectClass > &object1, const ReferenceCountedObjectClass *object2) noexcept |
| template<typename ReferenceCountedObjectClass> | |
| bool | operator!= (const ReferenceCountedObjectPtr< ReferenceCountedObjectClass > &object1, const ReferenceCountedObjectPtr< ReferenceCountedObjectClass > &object2) noexcept |
| template<typename ReferenceCountedObjectClass> | |
| bool | operator!= (ReferenceCountedObjectClass *object1, const ReferenceCountedObjectPtr< ReferenceCountedObjectClass > &object2) noexcept |
| static uint32 | water_millisecondsSinceStartup () noexcept |
| static void | deleteRenderOpArray (Array< void * > &ops) |
| OutputStream & | operator<< (OutputStream &stream, const MemoryOutputStream &streamToRead) |
| template<typename IntegerType> | |
| static void | writeIntToStream (OutputStream &stream, IntegerType number) |
| OutputStream & | operator<< (OutputStream &stream, const int number) |
| OutputStream & | operator<< (OutputStream &stream, const int64 number) |
| OutputStream & | operator<< (OutputStream &stream, const double number) |
| OutputStream & | operator<< (OutputStream &stream, const char character) |
| OutputStream & | operator<< (OutputStream &stream, const char *const text) |
| OutputStream & | operator<< (OutputStream &stream, const MemoryBlock &data) |
| OutputStream & | operator<< (OutputStream &stream, const File &fileToRead) |
| OutputStream & | operator<< (OutputStream &stream, InputStream &streamToRead) |
| OutputStream & | operator<< (OutputStream &stream, const NewLine &) |
| String & | operator<< (String &string1, const NewLine &) |
| String & | operator+= (String &s1, const NewLine &) |
| String | operator+ (const NewLine &, const NewLine &) |
| String | operator+ (String s1, const NewLine &) |
| String | operator+ (const NewLine &, const char *s2) |
| static size_t | findByteOffsetOfEnd (CharPointer_UTF8 text) noexcept |
| bool | operator== (const String &s1, const String &s2) noexcept |
| bool | operator!= (const String &s1, const String &s2) noexcept |
| bool | operator== (const String &s1, const char *s2) noexcept |
| bool | operator!= (const String &s1, const char *s2) noexcept |
| bool | operator== (const String &s1, StringRef s2) noexcept |
| bool | operator!= (const String &s1, StringRef s2) noexcept |
| bool | operator== (const String &s1, const CharPointer_UTF8 s2) noexcept |
| bool | operator!= (const String &s1, const CharPointer_UTF8 s2) noexcept |
| bool | operator> (const String &s1, const String &s2) noexcept |
| bool | operator< (const String &s1, const String &s2) noexcept |
| bool | operator>= (const String &s1, const String &s2) noexcept |
| bool | operator<= (const String &s1, const String &s2) noexcept |
| static int | stringCompareRight (CharPointer_UTF8 s1, CharPointer_UTF8 s2) noexcept |
| static int | stringCompareLeft (CharPointer_UTF8 s1, CharPointer_UTF8 s2) noexcept |
| static int | naturalStringCompare (CharPointer_UTF8 s1, CharPointer_UTF8 s2, bool isCaseSensitive) noexcept |
| String | operator+ (const char *const s1, const String &s2) |
| String | operator+ (const char s1, const String &s2) |
| String | operator+ (String s1, const String &s2) |
| String | operator+ (String s1, const char *const s2) |
| String | operator+ (String s1, const char s2) |
| String | operator+ (const water_uchar s1, const String &s2) |
| String | operator+ (String s1, const water_uchar s2) |
| String & | operator<< (String &s1, const water_uchar s2) |
| String & | operator<< (String &s1, const char s2) |
| String & | operator<< (String &s1, const char *const s2) |
| String & | operator<< (String &s1, const String &s2) |
| String & | operator<< (String &s1, StringRef s2) |
| String & | operator<< (String &s1, const int number) |
| String & | operator<< (String &s1, const short number) |
| String & | operator<< (String &s1, const unsigned short number) |
| String & | operator<< (String &s1, const long number) |
| String & | operator<< (String &s1, const unsigned long number) |
| String & | operator<< (String &s1, const int64 number) |
| String & | operator<< (String &s1, const uint64 number) |
| String & | operator<< (String &s1, const float number) |
| String & | operator<< (String &s1, const double number) |
| OutputStream & | operator<< (OutputStream &stream, const String &text) |
| OutputStream & | operator<< (OutputStream &stream, StringRef text) |
| static CharPointer_UTF8 | findTrimmedEnd (const CharPointer_UTF8 start, CharPointer_UTF8 end) |
| static String | getStringFromWindows1252Codepage (const char *data, size_t num) |
| template<typename Type> | |
| static String | hexToString (Type v) |
| template<class traits> | |
| std::basic_ostream< char, traits > & | operator<< (std::basic_ostream< char, traits > &stream, const String &stringToWrite) |
| String | operator+ (String s1, StringRef s2) |
| String | operator+ (StringRef s1, const String &s2) |
| String | operator+ (const char *s1, StringRef s2) |
| String | operator+ (StringRef s1, const char *s2) |
| bool | isValidXmlNameStartCharacter (const water_uchar character) noexcept |
| bool | isValidXmlNameBodyCharacter (const water_uchar character) noexcept |
| static const String & | getEmptyStringRef () noexcept |
| static const std::string & | getEmptyStdStringRef () noexcept |
Variables | |
| const double | double_Pi = 3.1415926535897932384626433832795 |
| const float | float_Pi = 3.14159265358979323846f |
| static const EmptyString | emptyString = { 0x3fffffff, sizeof (CharPointer_UTF8::CharType), '\0' } |
| static const char | hexDigits [] = "0123456789abcdef" |
| static const water_uchar | emptyChar = 0 |
| static const char *const | water_xmltextContentAttributeName = "text" |
| typedef signed short water::int16 |
A platform-independent 16-bit signed integer type.
| typedef signed int water::int32 |
A platform-independent 32-bit signed integer type.
| typedef long long water::int64 |
A platform-independent 64-bit integer type.
| typedef signed char water::int8 |
A platform-independent 8-bit signed integer type.
| typedef int water::pointer_sized_int |
A signed integer type that's guaranteed to be large enough to hold a pointer without truncating it.
| typedef unsigned int water::pointer_sized_uint |
An unsigned integer type that's guaranteed to be large enough to hold a pointer without truncating it.
| typedef unsigned short water::uint16 |
A platform-independent 16-bit unsigned integer type.
| typedef unsigned int water::uint32 |
A platform-independent 32-bit unsigned integer type.
| typedef unsigned long long water::uint64 |
A platform-independent 64-bit unsigned integer type.
| typedef unsigned char water::uint8 |
A platform-independent 8-bit unsigned integer type.
| typedef uint32 water::water_uchar |
A platform-independent 32-bit unicode character type.
|
inlinenoexcept |
A handy function which adds a number of bytes to any type of pointer and returns the result. This can be useful to avoid casting pointers to a char* and back when you want to move them by a specific number of bytes,
Returns the number of bits in a 32-bit integer.
Returns the number of bits in a 64-bit integer.
|
static |
|
inline |
If a pointer is non-null, this returns a new copy of the object that it points to, or safely returns nullptr if the pointer is null.
|
static |
|
inlinenoexcept |
Converts an angle in degrees to radians.
|
inlinenoexcept |
Converts an angle in degrees to radians.
|
inline |
Delete an object pointer, and sets the pointer to null.
Remember that it's not good c++ practice to use delete directly - always try to use a ScopedPointer or other automatic lifetime-management system rather than resorting to deleting raw pointers!
|
staticnoexcept |
Returns the index of the highest set bit in a (non-zero) number. So for n=3 this would return 1, for n=7 it returns 2, etc. An input value of 0 is illegal!
|
static |
Searches a sorted array of elements, looking for the index at which a specified value should be inserted for it to be in the correct order.
The comparator object that is passed-in must define a public method with the following signature:
..and this method must return:
To improve performance, the compareElements() method can be declared as static or const.
| comparator | an object which defines a compareElements() method |
| array | the array to search |
| newElement | the value that is going to be inserted |
| firstElement | the index of the first element to search |
| lastElement | the index of the last element in the range (this is non-inclusive) |
Scans an array of values, returning the maximum value that it contains.
| void water::findMinAndMax | ( | const Type * | values, |
| int | numValues, | ||
| Type & | lowest, | ||
| Type & | highest ) |
Scans an array of values, returning the minimum and maximum values that it contains.
Scans an array of values, returning the minimum value that it contains.
|
static |
|
inlinenoexcept |
A handy function which returns the difference between any two pointers, in bytes. The address of the second pointer is subtracted from the first, and the difference in bytes is returned.
|
staticnoexcept |
|
static |
Handy function for avoiding unused variables warning.
|
noexcept |
|
noexcept |
|
noexcept |
|
inlinenoexcept |
|
noexcept |
Returns true if a value is at least zero, and also below a specified upper limit. This is basically a quicker way to write:
|
inlinenoexcept |
|
noexcept |
Returns true if a value is at least zero, and also less than or equal to a specified upper limit. This is basically a quicker way to write:
| bool water::isPowerOfTwo | ( | IntegerType | value | ) |
Returns true if the specified integer is a power-of-two.
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
Constrains a value to keep it within a given range.
This will check that the specified value lies between the lower and upper bounds specified, and if not, will return the nearest value that would be in-range. Effectively, it's like calling jmax (lowerLimit, jmin (upperLimit, value)).
Note that it expects that lowerLimit <= upperLimit. If this isn't true, the results will be unpredictable.
| lowerLimit | the minimum value to return |
| upperLimit | the maximum value to return |
| valueToConstrain | the value to try to return |
| Type water::jmap | ( | Type | sourceValue, |
| Type | sourceRangeMin, | ||
| Type | sourceRangeMax, | ||
| Type | targetRangeMin, | ||
| Type | targetRangeMax ) |
Remaps a value from a source range to a target range.
| Type water::jmap | ( | Type | value0To1, |
| Type | targetRangeMin, | ||
| Type | targetRangeMax ) |
Remaps a normalised value (between 0 and 1) to a target range. This effectively returns (targetRangeMin + value0To1 * (targetRangeMax - targetRangeMin)).
Returns the larger of two values.
Returns the larger of three values.
Returns the larger of four values.
Returns the smaller of two values.
Returns the smaller of three values.
Returns the smaller of four values.
|
staticnoexcept |
|
noexcept |
Performs a modulo operation, but can cope with the dividend being negative. The divisor must be greater than zero.
Returns the smallest power-of-two which is equal to or greater than the given integer.
| size_t water::numElementsInArray | ( | Type(&) | array[N] | ) |
Handy function for getting the number of elements in a simple const C array. E.g.
|
noexcept |
Compares two ReferenceCountedObjectPtrs.
|
noexcept |
Compares two ReferenceCountedObjectPtrs.
Case-sensitive comparison of two strings.
|
noexcept |
Case-sensitive comparison of two strings.
Case-sensitive comparison of two strings.
Case-sensitive comparison of two strings.
|
noexcept |
Compares two ReferenceCountedObjectPtrs.
| String water::operator+ | ( | water_uchar | string1, |
| const String & | string2 ) |
Concatenates two strings.
| String water::operator+ | ( | String | string1, |
| water_uchar | characterToAppend ) |
Concatenates two strings.
Case-sensitive comparison of two strings.
| OutputStream & water::operator<< | ( | OutputStream & | stream, |
| const char * | text ) |
Writes a null-terminated text string to a stream.
| OutputStream & water::operator<< | ( | OutputStream & | stream, |
| char | character ) |
Writes a character to a stream.
| OutputStream & water::operator<< | ( | OutputStream & | stream, |
| double | number ) |
Writes a number to a stream as 8-bit characters in the default system encoding.
| OutputStream & water::operator<< | ( | OutputStream & | stream, |
| const File & | fileToRead ) |
Writes the contents of a file to a stream.
| OutputStream & water::operator<< | ( | OutputStream & | stream, |
| int | number ) |
Writes a number to a stream as 8-bit characters in the default system encoding.
| OutputStream & water::operator<< | ( | OutputStream & | stream, |
| int64 | number ) |
Writes a number to a stream as 8-bit characters in the default system encoding.
| OutputStream & water::operator<< | ( | OutputStream & | stream, |
| const MemoryBlock & | data ) |
Writes a block of data from a MemoryBlock to a stream.
| OutputStream & water::operator<< | ( | OutputStream & | stream, |
| const MemoryOutputStream & | streamToRead ) |
Copies all the data that has been written to a MemoryOutputStream into another stream.
| OutputStream & water::operator<< | ( | OutputStream & | stream, |
| const NewLine & | ) |
Writes a new-line to a stream. You can use the predefined symbol 'newLine' to invoke this, e.g.
| OutputStream & water::operator<< | ( | OutputStream & | stream, |
| const String & | stringToWrite ) |
Writes a string to an OutputStream as UTF8.
| OutputStream & water::operator<< | ( | OutputStream & | stream, |
| InputStream & | streamToRead ) |
Writes the complete contents of an input stream to an output stream.
| OutputStream & water::operator<< | ( | OutputStream & | stream, |
| StringRef | stringToWrite ) |
Writes a string to an OutputStream as UTF8.
| std::basic_ostream< char, traits > & water::operator<< | ( | std::basic_ostream< char, traits > & | stream, |
| const String & | stringToWrite ) |
This operator allows you to write a water String directly to std output streams. This is handy for writing strings to std::cout, std::cerr, etc.
Appends a string to the end of the first one.
Appends a character at the end of a string.
Appends a decimal number at the end of a string.
Appends a decimal number at the end of a string.
Appends a decimal number at the end of a string.
Appends a decimal number at the end of a string.
Appends a decimal number at the end of a string.
Appends a decimal number at the end of a string.
Appends a string to the end of the first one.
Appends a decimal number at the end of a string.
| String & water::operator<< | ( | String & | string1, |
| water_uchar | characterToAppend ) |
Appends a character at the end of a string.
Appends a string to the end of the first one.
Writes a new-line sequence to a string. You can use the predefined object 'newLine' to invoke this, e.g.
Case-sensitive comparison of two strings.
|
noexcept |
Compares two ReferenceCountedObjectPtrs.
|
noexcept |
Compares two ReferenceCountedObjectPtrs.
Case-sensitive comparison of two strings.
|
noexcept |
Case-sensitive comparison of two strings.
Case-sensitive comparison of two strings.
Case-sensitive comparison of two strings.
|
noexcept |
Compares two ReferenceCountedObjectPtrs.
Case-sensitive comparison of two strings.
Case-sensitive comparison of two strings.
|
inlinenoexcept |
Converts an angle in radians to degrees.
|
inlinenoexcept |
Converts an angle in radians to degrees.
|
noexcept |
Reads a number of bits from a buffer at a given bit index. The buffer is treated as a sequence of 8-bit bytes, and the value is encoded in little-endian order, so for example if startBit = 10, and numBits = 11 then the lower 6 bits of the result would be read from bits 2-8 of sourceBuffer[1], and the upper 5 bits of the result from bits 0-5 of sourceBuffer[2].
A handy function to read un-aligned memory without a performance penalty or bus-error.
|
inlinenoexcept |
Fast floating-point-to-integer conversion.
This is faster than using the normal c++ cast to convert a double to an int, and it will round the value to the nearest integer, rather than rounding it down like the normal cast does.
Note that this routine gets its speed at the expense of some accuracy, and when rounding values whose floating point component is exactly 0.5, odd numbers and even numbers will be rounded up or down differently. For a more accurate conversion, see roundDoubleToIntAccurate().
|
inlinenoexcept |
Fast floating-point-to-integer conversion.
This is faster than using the normal c++ cast to convert a float to an int, and it will round the value to the nearest integer, rather than rounding it down like the normal cast does.
Note that this routine gets its speed at the expense of some accuracy, and when rounding values whose floating point component is exactly 0.5, odd numbers and even numbers will be rounded up or down differently.
Fast floating-point-to-integer conversion.
This is faster than using the normal c++ cast to convert a float to an int, and it will round the value to the nearest integer, rather than rounding it down like the normal cast does.
Note that this routine gets its speed at the expense of some accuracy, and when rounding values whose floating point component is exactly 0.5, odd numbers and even numbers will be rounded up or down differently.
|
inlinenoexcept |
Fast floating-point-to-integer conversion.
This is a slightly slower and slightly more accurate version of roundDoubleToInt(). It works fine for values above zero, but negative numbers are rounded the wrong way.
|
static |
Sorts a range of elements in an array.
The comparator object that is passed-in must define a public method with the following signature:
..and this method must return:
To improve performance, the compareElements() method can be declared as static or const.
| comparator | an object which defines a compareElements() method |
| array | the array to sort |
| firstElement | the index of the first element of the range to be sorted |
| lastElement | the index of the last element in the range that needs sorting (this is inclusive) |
| retainOrderOfEquivalentItems | if true, the order of items that the comparator deems the same will be maintained - this will be a slower algorithm than if they are allowed to be moved around. |
|
noexcept |
Returns the square of its argument.
|
staticnoexcept |
|
staticnoexcept |
| void water::swapVariables | ( | Type & | variable1, |
| Type & | variable2 ) |
Handy function to swap two values.
| File water::water_getExecutableFile | ( | ) |
|
inlinenoexcept |
|
noexcept |
Using water_hypot is easier than dealing with the different types of hypot function that are provided by the various platforms and compilers.
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
The isfinite() method seems to vary between platforms, so this is a platform-independent function for it.
|
staticnoexcept |
|
static |
|
noexcept |
Writes a number of bits into a memory buffer at a given bit index. The buffer is treated as a sequence of 8-bit bytes, and the value is encoded in little-endian order, so for example if startBit = 10, and numBits = 11 then the lower 6 bits of the value would be written into bits 2-8 of targetBuffer[1], and the upper 5 bits of value into bits 0-5 of targetBuffer[2].
A handy function to write un-aligned memory without a performance penalty or bus-error.
Fills a block of memory with zeros.
|
inlinenoexcept |
Overwrites a structure or object with zeros.
| const double water::double_Pi = 3.1415926535897932384626433832795 |
A predefined value for Pi, at double-precision.
|
static |
|
static |
A predefined value for Pi, at single-precision.
|
static |