Main MRPT website
>
C++ reference for MRPT 1.9.9
xSens_MT4
xstypes
include
xsens
xsmessagearray.h
Go to the documentation of this file.
1
/* +------------------------------------------------------------------------+
2
| Mobile Robot Programming Toolkit (MRPT) |
3
| http://www.mrpt.org/ |
4
| |
5
| Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6
| See: http://www.mrpt.org/Authors - All rights reserved. |
7
| Released under BSD License. See details in http://www.mrpt.org/License |
8
+------------------------------------------------------------------------+ */
9
#ifndef XSMESSAGEARRAY_H
10
#define XSMESSAGEARRAY_H
11
12
#include "
xsarray.h
"
13
#include "
pstdint.h
"
14
15
#ifdef __cplusplus
16
#include "
xsmessage.h
"
17
extern
"C"
{
18
#endif
19
20
extern
XsArrayDescriptor
const
XSTYPES_DLL_API
g_xsMessageArrayDescriptor
;
21
22
#ifndef __cplusplus
23
#define XSMESSAGEARRAY_INITIALIZER \
24
XSARRAY_INITIALIZER(&g_xsMessageArrayDescriptor)
25
26
struct
XsMessage
;
27
XSARRAY_STRUCT
(
XsMessageArray
,
struct
XsMessage
);
28
typedef
struct
XsMessageArray
XsMessageArray
;
29
30
XSTYPES_DLL_API
void
XsMessageArray_construct
(
31
XsMessageArray
* thisPtr,
XsSize
count
,
struct
XsMessage
const
*
src
);
32
#else
33
}
// extern "C"
34
#endif
35
36
#ifdef __cplusplus
37
struct
XsMessageArray
38
:
public
XsArrayImpl<XsMessage, g_xsMessageArrayDescriptor, XsMessageArray>
39
{
40
//! \brief Constructs an XsMessageArray
41
inline
explicit
XsMessageArray
(
XsSize
sz = 0,
XsMessage
const
*
src
= 0)
42
: ArrayImpl(sz,
src
)
43
{
44
}
45
46
//! \brief Constructs an XsMessageArray as a copy of \a other
47
inline
XsMessageArray
(
XsMessageArray
const
& other) : ArrayImpl(other) {}
48
//! \brief Constructs an XsMessageArray that references the data supplied in
49
//! \a ref
50
inline
explicit
XsMessageArray
(
51
XsMessage
*
ref
,
XsSize
sz,
XsDataFlags
flags =
XSDF_None
)
52
: ArrayImpl(
ref
, sz, flags)
53
{
54
}
55
56
#ifndef XSENS_NOITERATOR
57
//! \brief Constructs an XsMessageArray with the array bound by the supplied
58
//! iterators \a beginIt and \a endIt
59
template
<
typename
Iterator>
60
inline
XsMessageArray
(Iterator beginIt, Iterator endIt)
61
: ArrayImpl(beginIt, endIt)
62
{
63
}
64
#endif
65
};
66
#endif
67
68
#endif // file guard
XsArrayDescriptor
This object describes how to treat the data in an array.
Definition:
xsarray.h:63
XsMessageArray_construct
XSTYPES_DLL_API void XsMessageArray_construct(XsMessageArray *thisPtr, XsSize count, struct XsMessage const *src)
src
GLuint src
Definition:
glext.h:7278
XsMessageArray
struct XsMessageArray XsMessageArray
Definition:
xsmessagearray.h:28
count
GLuint GLuint GLsizei count
Definition:
glext.h:3528
XsSize
size_t XsSize
XsSize must be unsigned number!
Definition:
xstypedefs.h:19
xsarray.h
pstdint.h
XsMessage
Structure for storing a single message.
Definition:
xsmessage.h:198
xsmessage.h
XSDF_None
@ XSDF_None
No flag set.
Definition:
xstypedefs.h:44
XSTYPES_DLL_API
#define XSTYPES_DLL_API
Definition:
xstypesconfig.h:9
g_xsMessageArrayDescriptor
const XsArrayDescriptor XSTYPES_DLL_API g_xsMessageArrayDescriptor
XsDataFlags
XsDataFlags
These flags define the behaviour of data contained by Xsens data structures.
Definition:
xstypedefs.h:41
ref
GLenum GLint ref
Definition:
glext.h:4050
XSARRAY_STRUCT
XSARRAY_STRUCT(XsMessageArray, struct XsMessage)
Page generated by
Doxygen 1.8.17
for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at mié 12 jul 2023 10:03:34 CEST