Main MRPT website > C++ reference for MRPT 1.5.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-2017, 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 XSARRAY_INITIALIZER(&g_xsMessageArrayDescriptor)
24 
25 struct XsMessage;
28 
30 #else
31 } // extern "C"
32 #endif
33 
34 #ifdef __cplusplus
35 struct XsMessageArray : public XsArrayImpl<XsMessage, g_xsMessageArrayDescriptor, XsMessageArray> {
36  //! \brief Constructs an XsMessageArray
37  inline explicit XsMessageArray(XsSize sz = 0, XsMessage const* src = 0)
38  : ArrayImpl(sz, src)
39  {
40  }
41 
42  //! \brief Constructs an XsMessageArray as a copy of \a other
43  inline XsMessageArray(XsMessageArray const& other)
44  : ArrayImpl(other)
45  {
46  }
47 
48  //! \brief Constructs an XsMessageArray that references the data supplied in \a ref
49  inline explicit XsMessageArray(XsMessage* ref, XsSize sz, XsDataFlags flags = XSDF_None)
50  : ArrayImpl(ref, sz, flags)
51  {
52  }
53 
54 #ifndef XSENS_NOITERATOR
55  //! \brief Constructs an XsMessageArray with the array bound by the supplied iterators \a beginIt and \a endIt
56  template <typename Iterator>
57  inline XsMessageArray(Iterator beginIt, Iterator endIt)
58  : ArrayImpl(beginIt, endIt)
59  {
60  }
61 #endif
62 };
63 #endif
64 
65 #endif // file guard
GLuint GLuint GLsizei count
Definition: glext.h:3512
This object describes how to treat the data in an array.
Definition: xsarray.h:51
GLenum GLint ref
Definition: glext.h:3888
size_t XsSize
XsSize must be unsigned number!
Definition: xstypedefs.h:17
GLuint src
Definition: glext.h:6303
No flag set.
Definition: xstypedefs.h:38
struct XsMessageArray XsMessageArray
Structure for storing a single message.
Definition: xsmessage.h:138
#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:37



Page generated by Doxygen 1.8.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020