Macros
xscopy.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define XSLISTCOPY(C)
 
#define XSLISTSWAP(C)   XSLISTSWAP2(C, C##Array)
 
#define XSLISTSWAP2(C, B)   XSLISTSWAP3(C, B, C##_swap)
 
#define XSLISTSWAP3(C, B, S)
 

Macro Definition Documentation

◆ XSLISTCOPY

#define XSLISTCOPY (   C)
Value:
if (copy == thisPtr)\
{\
return;\
}\
C##_assign(copy, thisPtr->m_size, thisPtr->m_data)

Definition at line 68 of file xscopy.h.

◆ XSLISTSWAP

#define XSLISTSWAP (   C)    XSLISTSWAP2(C, C##Array)

Definition at line 95 of file xscopy.h.

◆ XSLISTSWAP2

#define XSLISTSWAP2 (   C,
 
)    XSLISTSWAP3(C, B, C##_swap)

Definition at line 93 of file xscopy.h.

◆ XSLISTSWAP3

#define XSLISTSWAP3 (   C,
  B,
 
)
Value:
if ((!a->m_data || (a->m_flags & XSDF_Managed)) && (!b->m_data || (b->m_flags & XSDF_Managed))) {\
B tmp;\
*((C**) &tmp.m_data) = a->m_data;\
*((XsSize*) &tmp.m_size) = a->m_size;\
*((XsSize*) &tmp.m_flags) = a->m_flags;\
*((C**) &a->m_data) = b->m_data;\
*((XsSize*) &a->m_size) = b->m_size;\
*((XsSize*) &a->m_flags) = b->m_flags;\
*((C**) &b->m_data) = tmp.m_data;\
*((XsSize*) &b->m_size) = tmp.m_size;\
*((XsSize*) &b->m_flags) = tmp.m_flags;\
} else { /* elementwise swap */ \
XsSize i;\
assert(a->m_size == b->m_size);\
for (i = 0; i < a->m_size; ++i) S(&a->m_data[i], &b->m_data[i]);\
}

Definition at line 75 of file xscopy.h.

XsSize
size_t XsSize
XsSize must be unsigned number!
Definition: xstypedefs.h:74
XSDF_Managed
@ XSDF_Managed
The contained data should be managed (freed) by the object, when false, the object assumes the memory...
Definition: xstypedefs.h:110


xsens_mti_driver
Author(s):
autogenerated on Sun Sep 3 2023 02:43:21