MRPT  1.9.9
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 
21 
22 #ifndef __cplusplus
23 #define XSMESSAGEARRAY_INITIALIZER \
24  XSARRAY_INITIALIZER(&g_xsMessageArrayDescriptor)
25 
26 struct XsMessage;
29 
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(
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
GLuint GLuint GLsizei count
Definition: glext.h:3528
This object describes how to treat the data in an array.
Definition: xsarray.h:63
GLenum GLint ref
Definition: glext.h:4050
size_t XsSize
XsSize must be unsigned number!
Definition: xstypedefs.h:19
GLuint src
Definition: glext.h:7278
No flag set.
Definition: xstypedefs.h:44
struct XsMessageArray XsMessageArray
Structure for storing a single message.
Definition: xsmessage.h:198
#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: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020