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-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 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
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
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: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019