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



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019