Functions | Variables
xsdeviceptrarray.c File Reference
#include "xsdeviceptrarray.h"
Include dependency graph for xsdeviceptrarray.c:

Go to the source code of this file.

Functions

int compareDevicePtr (XsDevicePtr const *a, XsDevicePtr const *b)
 The function to use for comparing two items. More...
 
void copyDevicePtr (XsDevicePtr *to, XsDevicePtr const *from)
 The function to use for copying the data of from to to. More...
 
void swapDevicePtr (XsDevicePtr *a, XsDevicePtr *b)
 The function to use for swapping the data of two array items. More...
 
void XsDevicePtrArray_construct (XsDevicePtrArray *thisPtr, XsSize count, XsDevicePtr const *src)
 
void zeroDevicePtr (XsDevicePtr *a)
 zero the pointer value More...
 

Variables

const XsArrayDescriptor g_xsDevicePtrArrayDescriptor
 Descriptor for XsDevicePtrArray. More...
 

Function Documentation

◆ compareDevicePtr()

int compareDevicePtr ( XsDevicePtr const *  a,
XsDevicePtr const *  b 
)

The function to use for comparing two items.

Parameters
aLeft hand side of comparison.
bRight hand side of comparison.
Returns
The function will return 0 when the items are equal. When greater/less comparison is possible, the function should return < 0 if a < b and > 0 if a > b.
Note
Specialization for XsDevicePtr

Definition at line 93 of file xsdeviceptrarray.c.

◆ copyDevicePtr()

void copyDevicePtr ( XsDevicePtr to,
XsDevicePtr const *  from 
)

The function to use for copying the data of from to to.

Parameters
toPointer to item to copy to.
fromPointer to item to copy from.
Note
Specialization for XsDevicePtr

Definition at line 85 of file xsdeviceptrarray.c.

◆ swapDevicePtr()

void swapDevicePtr ( XsDevicePtr a,
XsDevicePtr b 
)

The function to use for swapping the data of two array items.

Parameters
aPointer to first item to swap.
bPointer to second item to swap.
Note
Specialization for XsDevicePtr

Definition at line 75 of file xsdeviceptrarray.c.

◆ XsDevicePtrArray_construct()

void XsDevicePtrArray_construct ( XsDevicePtrArray thisPtr,
XsSize  count,
XsDevicePtr const *  src 
)

Note
Specialization for XsDevicePtrArray

Definition at line 124 of file xsdeviceptrarray.c.

◆ zeroDevicePtr()

void zeroDevicePtr ( XsDevicePtr a)

zero the pointer value

Definition at line 103 of file xsdeviceptrarray.c.

Variable Documentation

◆ g_xsDevicePtrArrayDescriptor

const XsArrayDescriptor g_xsDevicePtrArrayDescriptor
Initial value:
=
{
sizeof(XsDevicePtr),
XSEXPCASTITEMSWAP swapDevicePtr,
XSEXPCASTITEMMAKE zeroDevicePtr,
(XsArrayItemCopyFunc) copyDevicePtr,
XSEXPCASTITEMMAKE zeroDevicePtr,
(XsArrayItemCopyFunc) copyDevicePtr,
(XsArrayItemCompareFunc) compareDevicePtr,
XSEXPCASTRAWCOPY XsArray_rawCopy
}

Descriptor for XsDevicePtrArray.

Definition at line 109 of file xsdeviceptrarray.c.

XsArray::XsArray_rawCopy
void XsArray_rawCopy(void *to, void const *from, XsSize count, XsSize iSize)
Copies items optimized in a direct way.
Definition: xsarray.c:707
zeroDevicePtr
void zeroDevicePtr(XsDevicePtr *a)
zero the pointer value
Definition: xsdeviceptrarray.c:103
copyDevicePtr
void copyDevicePtr(XsDevicePtr *to, XsDevicePtr const *from)
The function to use for copying the data of from to to.
Definition: xsdeviceptrarray.c:85
swapDevicePtr
void swapDevicePtr(XsDevicePtr *a, XsDevicePtr *b)
The function to use for swapping the data of two array items.
Definition: xsdeviceptrarray.c:75
XsDevicePtr
struct XsDevice * XsDevicePtr
A pointer to an XsDevice object.
Definition: xsdeviceptr.h:72
compareDevicePtr
int compareDevicePtr(XsDevicePtr const *a, XsDevicePtr const *b)
The function to use for comparing two items.
Definition: xsdeviceptrarray.c:93


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