MRPT  1.9.9
xssyncsettingarray.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 XSSYNCSETTINGARRAY_H
10 #define XSSYNCSETTINGARRAY_H
11 
12 #include "xsarray.h"
13 
14 #ifdef __cplusplus
15 #include "xssyncsetting.h"
16 extern "C"
17 {
18 #endif
19 
22 
23 #ifndef __cplusplus
24 #define XSSYNCSETTINGSARRAY_INITIALIZER \
25  XSARRAY_INITIALIZER(&g_xsSyncSettingArrayDescriptor)
26 
27  struct XsSyncSetting;
30 
33  struct XsSyncSetting const* src);
34 #else
35 } // extern "C"
36 #endif
37 
38 #ifdef __cplusplus
39  struct XsSyncSettingArray
40  : public XsArrayImpl<
41  XsSyncSetting, g_xsSyncSettingArrayDescriptor, XsSyncSettingArray>
42  {
43  //! \brief Constructs an XsSyncSettingArray
44  inline explicit XsSyncSettingArray(
45  XsSize sz = 0, XsSyncSetting const* src = 0)
46  : ArrayImpl(sz, src)
47  {
48  }
49 
50  //! \brief Constructs an XsSyncSettingArray as a copy of \a other
51  inline XsSyncSettingArray(XsSyncSettingArray const& other)
52  : ArrayImpl(other)
53  {
54  }
55 
56  //! \brief Constructs an XsSyncSettingArray that references the data
57  //! supplied in \a ref
58  inline explicit XsSyncSettingArray(
60  : ArrayImpl(ref, sz, flags)
61  {
62  }
63 
64 #ifndef XSENS_NOITERATOR
65  //! \brief Constructs an XsSyncSettingArray with the array bound by the
66  //! supplied iterators \a beginIt and \a endIt
67  template <typename Iterator>
68  inline XsSyncSettingArray(Iterator beginIt, Iterator endIt)
69  : ArrayImpl(beginIt, endIt)
70  {
71  }
72 #endif
73  };
74 #endif
75 #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
A structure for storing all xsens sync settings.
Definition: xssyncsetting.h:42
GLuint src
Definition: glext.h:7397
No flag set.
Definition: xstypedefs.h:44
#define XSTYPES_DLL_API
Definition: xstypesconfig.h:9
XsArrayDescriptor const XSTYPES_DLL_API g_xsSyncSettingArrayDescriptor
struct XsSyncSettingArray XsSyncSettingArray
XSARRAY_STRUCT(XsSyncSettingArray, struct XsSyncSetting)
XSTYPES_DLL_API void XsSyncSettingArray_construct(XsSyncSettingArray *thisPtr, XsSize count, struct XsSyncSetting 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