Public Types | Static Public Member Functions | Private Member Functions | Static Private Member Functions | List of all members
uavcan::FloatSpec< BitLen_, CastMode > Class Template Reference

#include <float_spec.hpp>

Inheritance diagram for uavcan::FloatSpec< BitLen_, CastMode >:
Inheritance graph
[legend]

Public Types

enum  { BitLen = BitLen_ }
 
enum  { MinBitLen = BitLen }
 
enum  { MaxBitLen = BitLen }
 
enum  { IsPrimitive = 1 }
 
enum  { IsExactRepresentation = (sizeof(StorageType) * 8 == BitLen) && std::numeric_limits<StorageType>::is_iec559 }
 
typedef NativeFloatSelector< BitLen >::Type StorageType
 

Static Public Member Functions

static int decode (StorageType &out_value, ScalarCodec &codec, TailArrayOptimizationMode)
 
static int encode (StorageType value, ScalarCodec &codec, TailArrayOptimizationMode)
 
static void extendDataTypeSignature (DataTypeSignature &)
 
static std::float_round_style roundstyle ()
 

Private Member Functions

 FloatSpec ()
 

Static Private Member Functions

static void saturate (StorageType &value)
 
static void truncate (StorageType &value)
 

Detailed Description

template<unsigned BitLen_, CastMode CastMode>
class uavcan::FloatSpec< BitLen_, CastMode >

Definition at line 130 of file float_spec.hpp.

Member Typedef Documentation

◆ StorageType

template<unsigned BitLen_, CastMode CastMode>
typedef NativeFloatSelector<BitLen>::Type uavcan::FloatSpec< BitLen_, CastMode >::StorageType

Definition at line 140 of file float_spec.hpp.

Member Enumeration Documentation

◆ anonymous enum

template<unsigned BitLen_, CastMode CastMode>
anonymous enum
Enumerator
BitLen 

Definition at line 135 of file float_spec.hpp.

◆ anonymous enum

template<unsigned BitLen_, CastMode CastMode>
anonymous enum
Enumerator
MinBitLen 

Definition at line 136 of file float_spec.hpp.

◆ anonymous enum

template<unsigned BitLen_, CastMode CastMode>
anonymous enum
Enumerator
MaxBitLen 

Definition at line 137 of file float_spec.hpp.

◆ anonymous enum

template<unsigned BitLen_, CastMode CastMode>
anonymous enum
Enumerator
IsPrimitive 

Definition at line 138 of file float_spec.hpp.

◆ anonymous enum

template<unsigned BitLen_, CastMode CastMode>
anonymous enum
Enumerator
IsExactRepresentation 

Definition at line 145 of file float_spec.hpp.

Constructor & Destructor Documentation

◆ FloatSpec()

template<unsigned BitLen_, CastMode CastMode>
uavcan::FloatSpec< BitLen_, CastMode >::FloatSpec ( )
private

Member Function Documentation

◆ decode()

template<unsigned BitLen_, CastMode CastMode>
static int uavcan::FloatSpec< BitLen_, CastMode >::decode ( StorageType out_value,
ScalarCodec codec,
TailArrayOptimizationMode   
)
inlinestatic

Definition at line 168 of file float_spec.hpp.

◆ encode()

template<unsigned BitLen_, CastMode CastMode>
static int uavcan::FloatSpec< BitLen_, CastMode >::encode ( StorageType  value,
ScalarCodec codec,
TailArrayOptimizationMode   
)
inlinestatic

Definition at line 154 of file float_spec.hpp.

◆ extendDataTypeSignature()

template<unsigned BitLen_, CastMode CastMode>
static void uavcan::FloatSpec< BitLen_, CastMode >::extendDataTypeSignature ( DataTypeSignature )
inlinestatic

Definition at line 180 of file float_spec.hpp.

◆ roundstyle()

template<unsigned BitLen_, CastMode CastMode>
static std::float_round_style uavcan::FloatSpec< BitLen_, CastMode >::roundstyle ( )
inlinestatic

Definition at line 151 of file float_spec.hpp.

◆ saturate()

template<unsigned BitLen_, CastMode CastMode>
static void uavcan::FloatSpec< BitLen_, CastMode >::saturate ( StorageType value)
inlinestaticprivate

Definition at line 183 of file float_spec.hpp.

◆ truncate()

template<unsigned BitLen_, CastMode CastMode>
static void uavcan::FloatSpec< BitLen_, CastMode >::truncate ( StorageType value)
inlinestaticprivate

Definition at line 202 of file float_spec.hpp.


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


uavcan_communicator
Author(s):
autogenerated on Fri Dec 13 2024 03:10:04