Main MRPT website > C++ reference for MRPT 1.5.7
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 XSARRAY_INITIALIZER(&g_xsDeviceIdArrayDescriptor)
25 
27 #else
28 } // extern "C"
29 #endif
30 
31 #ifdef __cplusplus
32 struct XsDeviceIdArray : public XsArrayImpl<XsDeviceId, g_xsDeviceIdArrayDescriptor, XsDeviceIdArray> {
33  //! \brief Constructs an XsDeviceIdArray
34  inline explicit XsDeviceIdArray(XsSize sz = 0, XsDeviceId const* src = 0)
35  : ArrayImpl(sz, src)
36  {
37  }
38 
39  //! \brief Constructs an XsDeviceIdArray as a copy of \a other
40  inline XsDeviceIdArray(XsDeviceIdArray const& other)
41  : ArrayImpl(other)
42  {
43  }
44 
45  //! \brief Constructs an XsDeviceIdArray that references the data supplied in \a ref
46  inline explicit XsDeviceIdArray(XsDeviceId* ref, XsSize sz, XsDataFlags flags = XSDF_None)
47  : ArrayImpl(ref, sz, flags)
48  {
49  }
50 #ifndef XSENS_NOITERATOR
51  //! \brief Constructs an XsDeviceIdArray with the array bound by the supplied iterators \a beginIt and \a endIt
52  template <typename Iterator>
53  inline XsDeviceIdArray(Iterator beginIt, Iterator endIt)
54  : ArrayImpl(beginIt, endIt)
55  {
56  }
57 #endif
58 };
59 #endif
60 
61 
62 #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
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:37



Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019