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



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