MRPT  1.9.9
xsdeviceidarray.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 XSDEVICEIDARRAY_H
10 #define XSDEVICEIDARRAY_H
11 
12 #include "xsarray.h"
13 #include "xsdeviceid.h"
14 
15 #ifdef __cplusplus
16 extern "C"
17 {
18 #endif
19 
21 
22 #ifndef __cplusplus
23 #define XSDEVICEIDARRAY_INITIALIZER \
24  XSARRAY_INITIALIZER(&g_xsDeviceIdArrayDescriptor)
27 
29  XsDeviceIdArray* thisPtr, XsSize count, XsDeviceId const* src);
30 #else
31 } // extern "C"
32 #endif
33 
34 #ifdef __cplusplus
35  struct XsDeviceIdArray
36  : public XsArrayImpl<
37  XsDeviceId, g_xsDeviceIdArrayDescriptor, XsDeviceIdArray>
38  {
39  //! \brief Constructs an XsDeviceIdArray
40  inline explicit XsDeviceIdArray(
41  XsSize sz = 0, XsDeviceId const* src = 0)
42  : ArrayImpl(sz, src)
43  {
44  }
45 
46  //! \brief Constructs an XsDeviceIdArray as a copy of \a other
47  inline XsDeviceIdArray(XsDeviceIdArray const& other) : ArrayImpl(other)
48  {
49  }
50  //! \brief Constructs an XsDeviceIdArray that references the data
51  //! supplied in \a ref
52  inline explicit XsDeviceIdArray(
54  : ArrayImpl(ref, sz, flags)
55  {
56  }
57 #ifndef XSENS_NOITERATOR
58  //! \brief Constructs an XsDeviceIdArray with the array bound by the
59  //! supplied iterators \a beginIt and \a endIt
60  template <typename Iterator>
61  inline XsDeviceIdArray(Iterator beginIt, Iterator endIt)
62  : ArrayImpl(beginIt, endIt)
63  {
64  }
65 #endif
66  };
67 #endif
68 
69 #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
XsArrayDescriptor const XSTYPES_DLL_API g_xsDeviceIdArrayDescriptor
struct XsDeviceIdArray XsDeviceIdArray
XSARRAY_STRUCT(XsDeviceIdArray, XsDeviceId)
#define XSTYPES_DLL_API
Definition: xstypesconfig.h:9
XSTYPES_DLL_API void XsDeviceIdArray_construct(XsDeviceIdArray *thisPtr, XsSize count, XsDeviceId const *src)
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