Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
TFloatPacker< NumExponentBits, NumMantissaBits, bRound, FloatInfo > Class Template Reference

#include <FloatPacker.h>

Public Types

enum  { NumOutputsBits = NumExponentBits + NumMantissaBits + 1 }
 
enum  { MantissaShift = FloatInfo::MantissaBits - NumMantissaBits }
 
enum  { ExponentBias = (1 << (NumExponentBits-1)) - 1 }
 
enum  { SignShift = NumExponentBits + NumMantissaBits }
 
enum  { MantissaMask = (1 << NumMantissaBits) - 1 }
 
enum  { ExponentMask = ((1 << NumExponentBits)-1) << NumMantissaBits }
 
enum  { SignMask = 1 << SignShift }
 
enum  { MinExponent = -ExponentBias - 1 }
 
enum  { MaxExponent = ExponentBias }
 
typedef FloatInfo::PackedType PackedType
 
typedef FloatInfo::FloatType FloatType
 

Public Member Functions

PackedType Encode (FloatType Value) const
 
FloatType Decode (PackedType Value) const
 

Detailed Description

template<uint32 NumExponentBits, uint32 NumMantissaBits, bool bRound, typename FloatInfo = FFloatInfo_IEEE32>
class TFloatPacker< NumExponentBits, NumMantissaBits, bRound, FloatInfo >

Definition at line 45 of file FloatPacker.h.

Member Typedef Documentation

◆ FloatType

template<uint32 NumExponentBits, uint32 NumMantissaBits, bool bRound, typename FloatInfo = FFloatInfo_IEEE32>
typedef FloatInfo::FloatType TFloatPacker< NumExponentBits, NumMantissaBits, bRound, FloatInfo >::FloatType

Definition at line 62 of file FloatPacker.h.

◆ PackedType

template<uint32 NumExponentBits, uint32 NumMantissaBits, bool bRound, typename FloatInfo = FFloatInfo_IEEE32>
typedef FloatInfo::PackedType TFloatPacker< NumExponentBits, NumMantissaBits, bRound, FloatInfo >::PackedType

Definition at line 61 of file FloatPacker.h.

Member Enumeration Documentation

◆ anonymous enum

template<uint32 NumExponentBits, uint32 NumMantissaBits, bool bRound, typename FloatInfo = FFloatInfo_IEEE32>
anonymous enum
Enumerator
NumOutputsBits 

Definition at line 48 of file FloatPacker.h.

◆ anonymous enum

template<uint32 NumExponentBits, uint32 NumMantissaBits, bool bRound, typename FloatInfo = FFloatInfo_IEEE32>
anonymous enum
Enumerator
MantissaShift 

Definition at line 50 of file FloatPacker.h.

◆ anonymous enum

template<uint32 NumExponentBits, uint32 NumMantissaBits, bool bRound, typename FloatInfo = FFloatInfo_IEEE32>
anonymous enum
Enumerator
ExponentBias 

Definition at line 51 of file FloatPacker.h.

◆ anonymous enum

template<uint32 NumExponentBits, uint32 NumMantissaBits, bool bRound, typename FloatInfo = FFloatInfo_IEEE32>
anonymous enum
Enumerator
SignShift 

Definition at line 52 of file FloatPacker.h.

◆ anonymous enum

template<uint32 NumExponentBits, uint32 NumMantissaBits, bool bRound, typename FloatInfo = FFloatInfo_IEEE32>
anonymous enum
Enumerator
MantissaMask 

Definition at line 54 of file FloatPacker.h.

◆ anonymous enum

template<uint32 NumExponentBits, uint32 NumMantissaBits, bool bRound, typename FloatInfo = FFloatInfo_IEEE32>
anonymous enum
Enumerator
ExponentMask 

Definition at line 55 of file FloatPacker.h.

◆ anonymous enum

template<uint32 NumExponentBits, uint32 NumMantissaBits, bool bRound, typename FloatInfo = FFloatInfo_IEEE32>
anonymous enum
Enumerator
SignMask 

Definition at line 56 of file FloatPacker.h.

◆ anonymous enum

template<uint32 NumExponentBits, uint32 NumMantissaBits, bool bRound, typename FloatInfo = FFloatInfo_IEEE32>
anonymous enum
Enumerator
MinExponent 

Definition at line 58 of file FloatPacker.h.

◆ anonymous enum

template<uint32 NumExponentBits, uint32 NumMantissaBits, bool bRound, typename FloatInfo = FFloatInfo_IEEE32>
anonymous enum
Enumerator
MaxExponent 

Definition at line 59 of file FloatPacker.h.

Member Function Documentation

◆ Decode()

template<uint32 NumExponentBits, uint32 NumMantissaBits, bool bRound, typename FloatInfo = FFloatInfo_IEEE32>
FloatType TFloatPacker< NumExponentBits, NumMantissaBits, bRound, FloatInfo >::Decode ( PackedType Value) const
inline

Definition at line 110 of file FloatPacker.h.

◆ Encode()

template<uint32 NumExponentBits, uint32 NumMantissaBits, bool bRound, typename FloatInfo = FFloatInfo_IEEE32>
PackedType TFloatPacker< NumExponentBits, NumMantissaBits, bRound, FloatInfo >::Encode ( FloatType Value) const
inline

Definition at line 64 of file FloatPacker.h.


The documentation for this class was generated from the following file: