File types.hpp

Typedefs

typedef int int32
typedef long int int64
typedef unsigned char uint8
typedef unsigned int uint32
typedef float float32
typedef double float64

Functions

template<typename T>
inline bool isEqual(T a, T b)

Returns whether two values a and b are equal or not.

Template Parameters:

T – The type of the values to be compared

Parameters:
  • a – The first value

  • b – The second value

Returns:

True if the given values are equal, false otherwise

template<>
inline bool isEqual(float32 a, float32 b)

Returns whether two values a and b of type float32 are (approximately) equal or not.

Parameters:
  • a – The first value

  • b – The second value

Returns:

True if the given values are equal, false otherwise

template<>
inline bool isEqual(float64 a, float64 b)

Returns whether two values a and b of type float64 are (approximately) equal or not.

Parameters:
  • a – The first value

  • b – The second value

Returns:

True if the given values are equal, false otherwise

template<typename T>
inline bool isEqualToZero(T a)

Returns whether a specific value is equal to zero or not.

Parameters:

a – The value

Returns:

True, if the given value is equal to zero, false otherwise