PdCom  5.3
Process data communication client
Classes | Functions
details.h File Reference
#include "SizeTypeInfo.h"
#include <array>
#include <cstddef>
#include <cstdint>
#include <pdcom5_export.h>
#include <string>
#include <type_traits>
#include <vector>

Go to the source code of this file.

Classes

struct  PdCom::details::TypeInfoTraits< T >
 
struct  PdCom::details::TypeInfoTraits< bool >
 
struct  PdCom::details::TypeInfoTraits< char >
 
struct  PdCom::details::TypeInfoTraits< uint8_t >
 
struct  PdCom::details::TypeInfoTraits< int8_t >
 
struct  PdCom::details::TypeInfoTraits< uint16_t >
 
struct  PdCom::details::TypeInfoTraits< int16_t >
 
struct  PdCom::details::TypeInfoTraits< uint32_t >
 
struct  PdCom::details::TypeInfoTraits< int32_t >
 
struct  PdCom::details::TypeInfoTraits< uint64_t >
 
struct  PdCom::details::TypeInfoTraits< int64_t >
 
struct  PdCom::details::TypeInfoTraits< double >
 
struct  PdCom::details::TypeInfoTraits< float >
 
struct  PdCom::details::DataTypeTraits< dtype >
 
struct  PdCom::details::DataTypeTraits< TypeInfo::boolean_T >
 
struct  PdCom::details::DataTypeTraits< TypeInfo::char_T >
 
struct  PdCom::details::DataTypeTraits< TypeInfo::uint8_T >
 
struct  PdCom::details::DataTypeTraits< TypeInfo::int8_T >
 
struct  PdCom::details::DataTypeTraits< TypeInfo::uint16_T >
 
struct  PdCom::details::DataTypeTraits< TypeInfo::int16_T >
 
struct  PdCom::details::DataTypeTraits< TypeInfo::uint32_T >
 
struct  PdCom::details::DataTypeTraits< TypeInfo::int32_T >
 
struct  PdCom::details::DataTypeTraits< TypeInfo::uint64_T >
 
struct  PdCom::details::DataTypeTraits< TypeInfo::int64_T >
 
struct  PdCom::details::DataTypeTraits< TypeInfo::double_T >
 
struct  PdCom::details::DataTypeTraits< TypeInfo::single_T >
 
struct  PdCom::details::is_contiguous< T, class >
 
struct  PdCom::details::is_contiguous< std::vector< T > >
 
struct  PdCom::details::is_contiguous< std::vector< bool > >
 
struct  PdCom::details::is_contiguous< std::array< T, N > >
 
struct  PdCom::details::is_contiguous< std::basic_string< Char, Traits, Alloc > >
 

Functions

void PDCOM5_PUBLIC PdCom::details::copyData (void *dst, TypeInfo::DataType dst_type, const void *src, TypeInfo::DataType src_type, size_t nelem, size_t offset=0)
 Data Conversion Matrix. More...
 

Function Documentation

◆ copyData()

void PDCOM5_PUBLIC PdCom::details::copyData ( void *  dst,
TypeInfo::DataType  dst_type,
const void *  src,
TypeInfo::DataType  src_type,
size_t  nelem,
size_t  offset = 0 
)

Data Conversion Matrix.

This method converts an array of one numeric type to another.

Essentially does

for (i=0; i < nelem; ++i)
dst[i] = src[i+offset]
Parameters
dstDestination array, must not be null.
dst_typeType of the destination array.
srcSource array, must not be null.
src_typeType of the source array.
nelemNumber of elements to copy.
offsetOptional offset of the first element to copy.