ROS2Sonic  0.2.0
A ROS2 driver for R2Sonic MBES
Loading...
Searching...
No Matches
r2sonic::primitives::BigEndianPrimative< PrimT > Struct Template Reference

The BigEndianPrimative struct represents a big endian version of various primitives. Also includes overloaded casting operators so it can be assigned to standard primatives with minimal extra syntax. More...

#include <primatives.hpp>

Public Member Functions

PrimT get () const
 returns the machine-endian version of the variable in the specified (PrimT) type.
 
void set (PrimT val)
 
 operator int8_t () const
 
 operator int16_t () const
 
 operator int32_t () const
 
 operator uint8_t () const
 
 operator uint16_t () const
 
 operator uint32_t () const
 
 operator float () const
 
 operator double () const
 

Public Attributes

PrimT raw
 

Detailed Description

template<typename PrimT>
struct r2sonic::primitives::BigEndianPrimative< PrimT >

The BigEndianPrimative struct represents a big endian version of various primitives. Also includes overloaded casting operators so it can be assigned to standard primatives with minimal extra syntax.

Member Function Documentation

◆ get()

template<typename PrimT >
PrimT r2sonic::primitives::BigEndianPrimative< PrimT >::get ( ) const
inline

returns the machine-endian version of the variable in the specified (PrimT) type.

Returns
a machine endian version fo the variable

◆ operator double()

template<typename PrimT >
r2sonic::primitives::BigEndianPrimative< PrimT >::operator double ( ) const
inline

◆ operator float()

template<typename PrimT >
r2sonic::primitives::BigEndianPrimative< PrimT >::operator float ( ) const
inline

◆ operator int16_t()

template<typename PrimT >
r2sonic::primitives::BigEndianPrimative< PrimT >::operator int16_t ( ) const
inline

◆ operator int32_t()

template<typename PrimT >
r2sonic::primitives::BigEndianPrimative< PrimT >::operator int32_t ( ) const
inline

◆ operator int8_t()

template<typename PrimT >
r2sonic::primitives::BigEndianPrimative< PrimT >::operator int8_t ( ) const
inline

◆ operator uint16_t()

template<typename PrimT >
r2sonic::primitives::BigEndianPrimative< PrimT >::operator uint16_t ( ) const
inline

◆ operator uint32_t()

template<typename PrimT >
r2sonic::primitives::BigEndianPrimative< PrimT >::operator uint32_t ( ) const
inline

◆ operator uint8_t()

template<typename PrimT >
r2sonic::primitives::BigEndianPrimative< PrimT >::operator uint8_t ( ) const
inline

◆ set()

template<typename PrimT >
void r2sonic::primitives::BigEndianPrimative< PrimT >::set ( PrimT val)
inline

Member Data Documentation

◆ raw

template<typename PrimT >
PrimT r2sonic::primitives::BigEndianPrimative< PrimT >::raw

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