Public Types | Static Public Member Functions | Static Public Attributes | List of all members
visionary::Endian< frompar, topar > Struct Template Reference

#include <VisionaryEndian.h>

Public Types

using ByteVector = std::vector< std::uint8_t >
 

Static Public Member Functions

template<typename T >
static T convert (const T &val)
 
template<typename T >
static T convertFrom (const void *pSrc)
 
template<typename T , class TInputIt >
static bool convertFrom (T &rval, TInputIt &first, const TInputIt &last)
 
template<typename T >
static void convertTo (void *pDest, size_t nSize, const T &val)
 
template<typename T >
static ByteVector convertToVector (const T &val, size_t capacity=0u)
 

Static Public Attributes

static constexpr auto from = frompar
 
static constexpr auto to = topar
 

Detailed Description

template<endian frompar, endian topar>
struct visionary::Endian< frompar, topar >

Definition at line 162 of file VisionaryEndian.h.

Member Typedef Documentation

◆ ByteVector

template<endian frompar, endian topar>
using visionary::Endian< frompar, topar >::ByteVector = std::vector<std::uint8_t>

Definition at line 167 of file VisionaryEndian.h.

Member Function Documentation

◆ convert()

template<endian frompar, endian topar>
template<typename T >
static T visionary::Endian< frompar, topar >::convert ( const T val)
inlinestatic

Definition at line 170 of file VisionaryEndian.h.

◆ convertFrom() [1/2]

template<endian frompar, endian topar>
template<typename T >
static T visionary::Endian< frompar, topar >::convertFrom ( const void *  pSrc)
inlinestatic

Definition at line 182 of file VisionaryEndian.h.

◆ convertFrom() [2/2]

template<endian frompar, endian topar>
template<typename T , class TInputIt >
static bool visionary::Endian< frompar, topar >::convertFrom ( T rval,
TInputIt &  first,
const TInputIt &  last 
)
inlinestatic

Definition at line 199 of file VisionaryEndian.h.

◆ convertTo()

template<endian frompar, endian topar>
template<typename T >
static void visionary::Endian< frompar, topar >::convertTo ( void *  pDest,
size_t  nSize,
const T val 
)
inlinestatic

Definition at line 176 of file VisionaryEndian.h.

◆ convertToVector()

template<endian frompar, endian topar>
template<typename T >
static ByteVector visionary::Endian< frompar, topar >::convertToVector ( const T val,
size_t  capacity = 0u 
)
inlinestatic

Definition at line 188 of file VisionaryEndian.h.

Member Data Documentation

◆ from

template<endian frompar, endian topar>
constexpr auto visionary::Endian< frompar, topar >::from = frompar
staticconstexpr

Definition at line 164 of file VisionaryEndian.h.

◆ to

template<endian frompar, endian topar>
constexpr auto visionary::Endian< frompar, topar >::to = topar
staticconstexpr

Definition at line 165 of file VisionaryEndian.h.


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


sick_visionary_ros
Author(s): SICK AG TechSupport 3D Snapshot
autogenerated on Thu Feb 8 2024 04:38:18