Main MRPT website > C++ reference for MRPT 1.9.9
xsdeviceidarray.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 XSDEVICEIDARRAY_H
10 #define XSDEVICEIDARRAY_H
11 
12 #include "xsarray.h"
13 #include "xsdeviceid.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
20 
21 #ifndef __cplusplus
22 #define XSDEVICEIDARRAY_INITIALIZER \
23  XSARRAY_INITIALIZER(&g_xsDeviceIdArrayDescriptor)
26 
28  XsDeviceIdArray* thisPtr, XsSize count, XsDeviceId const* src);
29 #else
30 } // extern "C"
31 #endif
32 
33 #ifdef __cplusplus
34 struct XsDeviceIdArray
35  : public XsArrayImpl<XsDeviceId, g_xsDeviceIdArrayDescriptor,
36  XsDeviceIdArray>
37 {
38  //! \brief Constructs an XsDeviceIdArray
39  inline explicit XsDeviceIdArray(XsSize sz = 0, XsDeviceId const* src = 0)
40  : ArrayImpl(sz, src)
41  {
42  }
43 
44  //! \brief Constructs an XsDeviceIdArray as a copy of \a other
45  inline XsDeviceIdArray(XsDeviceIdArray const& other) : ArrayImpl(other) {}
46  //! \brief Constructs an XsDeviceIdArray that references the data supplied
47  //! in \a ref
48  inline explicit XsDeviceIdArray(
50  : ArrayImpl(ref, sz, flags)
51  {
52  }
53 #ifndef XSENS_NOITERATOR
54  //! \brief Constructs an XsDeviceIdArray with the array bound by the
55  //! supplied iterators \a beginIt and \a endIt
56  template <typename Iterator>
57  inline XsDeviceIdArray(Iterator beginIt, Iterator endIt)
58  : ArrayImpl(beginIt, endIt)
59  {
60  }
61 #endif
62 };
63 #endif
64 
65 #endif // file guard
XsArrayDescriptor
This object describes how to treat the data in an array.
Definition: xsarray.h:63
XsDeviceId
Definition: xsdeviceid.h:65
src
GLuint src
Definition: glext.h:7278
XsDeviceIdArray_construct
XSTYPES_DLL_API void XsDeviceIdArray_construct(XsDeviceIdArray *thisPtr, XsSize count, XsDeviceId const *src)
count
GLuint GLuint GLsizei count
Definition: glext.h:3528
XsSize
size_t XsSize
XsSize must be unsigned number!
Definition: xstypedefs.h:19
xsdeviceid.h
xsarray.h
XSDF_None
@ XSDF_None
No flag set.
Definition: xstypedefs.h:44
XSTYPES_DLL_API
#define XSTYPES_DLL_API
Definition: xstypesconfig.h:9
XSARRAY_STRUCT
XSARRAY_STRUCT(XsDeviceIdArray, XsDeviceId)
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
g_xsDeviceIdArrayDescriptor
const XsArrayDescriptor XSTYPES_DLL_API g_xsDeviceIdArrayDescriptor
XsDeviceIdArray
struct XsDeviceIdArray XsDeviceIdArray
Definition: xsdeviceidarray.h:25



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