template_pkg  1.0.0
A template ROS2 Package
Loading...
Searching...
No Matches
primitives.hpp File Reference
#include "package_defs.hpp"
#include <cstdint>
#include <cstddef>
Include dependency graph for primitives.hpp:
This graph shows which files directly or indirectly include this file:

Classes

struct  roship_io::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. More...
 

Namespaces

namespace  roship_io
 
namespace  roship_io::primitives
 

Typedefs

using roship_io::primitives::byte = uint8_t
 this covers the ROSmessage definition of a byte
 
using roship_io::primitives::word = uint16_t
 
typedef uint8_t roship_io::primitives::u8
 
typedef uint16_t roship_io::primitives::u16
 
typedef uint32_t roship_io::primitives::u32
 
typedef int8_t roship_io::primitives::s8
 
typedef int16_t roship_io::primitives::s16
 
typedef int32_t roship_io::primitives::s32
 
typedef float roship_io::primitives::f32
 
typedef double roship_io::primitives::f64
 
typedef BigEndianPrimative< u8roship_io::primitives::BE_u8
 
typedef BigEndianPrimative< u16roship_io::primitives::BE_u16
 
typedef BigEndianPrimative< u32roship_io::primitives::BE_u32
 
typedef BigEndianPrimative< s8roship_io::primitives::BE_s8
 
typedef BigEndianPrimative< s16roship_io::primitives::BE_s16
 
typedef BigEndianPrimative< s32roship_io::primitives::BE_s32
 
typedef BigEndianPrimative< f32roship_io::primitives::BE_f32
 
typedef BigEndianPrimative< f64roship_io::primitives::BE_f64
 

Functions

template<typename T >
roship_io::primitives::revPrimitive (const T u)