gwnavruntime/base/types.h File Reference

#include "gwnavruntime/kernel/SF_Types.h"
#include <math.h>

Namespaces

 Kaim
 
 Kaim::Result
 

Macros

#define KY_CLASS_WITHOUT_COPY(ClassName)
 
#define KY_DEPRECATED(f)   __declspec(deprecated) f
 
#define KY_ERROR   Kaim::Result::Failure
 
#define KY_FAILED(expression)   (Kaim::Result::Fail(expression))
 
#define KY_NULL   0
 
#define KY_SUCCEEDED(expression)   (Kaim::Result::Check(expression))
 
#define KY_SUCCESS   Kaim::Result::Success
 
#define KY_TRAVERSE_LOGIC(ClassName, costMode, canEnterMode)
 
#define KyFloat32MAXVAL   3.402823466e+38f
 
#define KyInt16MAXVAL   0x7FFF
 
#define KyInt16MINVAL   0x8000
 
#define KyInt32MAXVAL   0x7FFFFFFF
 
#define KyInt32MINVAL   0x80000000
 
#define KyInt64MAXVAL   0x7FFFFFFFFFFFFFFFLL
 
#define KyInt8MAXVAL   0x7F
 
#define KyInt8MINVAL   0x80
 
#define KyUInt16MAXVAL   0xFFFF
 
#define KyUInt32MAXVAL   0xFFFFFFFF
 
#define KyUInt64MAXVAL   0xFFFFFFFFFFFFFFFFULL
 
#define KyUInt8MAXVAL   0xFF
 

Typedefs

typedef float KyFloat32
 
typedef double KyFloat64
 
typedef short KyInt16
 
typedef int KyInt32
 
typedef __int64 KyInt64
 
typedef signed char KyInt8
 
typedef KyInt32 KyResult
 
typedef unsigned short KyUInt16
 
typedef unsigned int KyUInt32
 
typedef unsigned __int64 KyUInt64
 
typedef unsigned char KyUInt8
 

Functions

template<typename T , KyUInt32 N>
KyUInt32 Kaim::ArraySize (T(&)[N])
 
bool Kaim::Result::Check (KyResult result)
 
bool Kaim::Result::Fail (KyResult result)
 
KyFloat32 Kaim::GetRadiansFromDegrees (KyFloat32 degrees)
 

Variables

static const KyResult Kaim::Result::Failure = 0
 
static const KyFloat32 Kaim::KY_2_PI = 2.0f * KY_PI
 
static const KyFloat32 Kaim::KY_PI = 3.14159265f
 
const KyFloat32 Kaim::KY_PI_DIVIDED_BY_180 = KY_PI / 180.0f
 
static const KyResult Kaim::Result::Success = 1
 

Macro Definition Documentation

#define KY_CLASS_WITHOUT_COPY (   ClassName)

Define to forbid copy constructor and copy assignment.

+ Examples:
#define KY_DEPRECATED (   f)    __declspec(deprecated) f

Macro to mark a function, class or method as deprecated.

The compiler issues a warning when a deprecated element is used.

#define KY_SUCCEEDED (   expression)    (Kaim::Result::Check(expression))

Shorthand for Kaim::Result::Check().

#define KY_TRAVERSE_LOGIC (   ClassName,
  costMode,
  canEnterMode 
)

Define to forbid constructor, copy constructor and copy assignment.

#define KyFloat32MAXVAL   3.402823466e+38f

The maximum value that can be stored in the KyFloat32 variable type.

+ Examples:
#define KyInt16MAXVAL   0x7FFF

The maximum value that can be stored in the KyInt16 variable type.

#define KyInt16MINVAL   0x8000

The minimum value that can be stored in the KyInt16 variable type.

#define KyInt32MAXVAL   0x7FFFFFFF

The maximum value that can be stored in the KyInt32 variable type.

#define KyInt32MINVAL   0x80000000

The minimum value that can be stored in the KyInt32 variable type.

#define KyInt64MAXVAL   0x7FFFFFFFFFFFFFFFLL

The maximum value that can be stored in the KyInt64 variable type.

#define KyInt8MAXVAL   0x7F

The maximum value that can be stored in the KyInt8 variable type.

#define KyInt8MINVAL   0x80

The maximum value that can be stored in the KyInt8 variable type.

#define KyUInt16MAXVAL   0xFFFF

The maximum value that can be stored in the KyUInt16 variable type.

#define KyUInt32MAXVAL   0xFFFFFFFF

The maximum value that can be stored in the KyUInt32 variable type.

+ Examples:
#define KyUInt64MAXVAL   0xFFFFFFFFFFFFFFFFULL

The maximum value that can be stored in the KyUInt64 variable type.

#define KyUInt8MAXVAL   0xFF

The maximum value that can be stored in the KyUInt8 variable type.

Typedef Documentation

typedef float KyFloat32

Type used internally to represent a 32-bit floating-point number.

+ Examples:
typedef double KyFloat64

Type used internally to represent a 64-bit floating-point number.

typedef short KyInt16

Type used internally to represent a 16-bit integer.

typedef int KyInt32

Type used internally to represent a 32-bit integer.

+ Examples:
typedef __int64 KyInt64

Type used internally to represent a 64-bit integer.

typedef signed char KyInt8

Type used internally to represent an 8-bit integer.

typedef KyInt32 KyResult

Defines a type that can be returned by methods or functions in the Gameware Navigation SDK to indicate the results of the requested computations.

typedef unsigned short KyUInt16

Type used internally to represent an unsigned 16-bit integer.

typedef unsigned int KyUInt32

Type used internally to represent an unsigned 32-bit integer.

+ Examples:
typedef unsigned __int64 KyUInt64

Type used internally to represent an unsigned 64-bit integer.

typedef unsigned char KyUInt8

Type used internally to represent an unsigned 8-bit integer.

Go to the source code of this file.