Main MRPT website > C++ reference for MRPT 1.5.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-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 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 XSARRAY_INITIALIZER(&g_xsSyncSettingArrayDescriptor)
23 
24 struct XsSyncSetting;
27 
29 #else
30 } // extern "C"
31 #endif
32 
33 #ifdef __cplusplus
34 struct XsSyncSettingArray : public XsArrayImpl<XsSyncSetting, g_xsSyncSettingArrayDescriptor, XsSyncSettingArray> {
35  //! \brief Constructs an XsSyncSettingArray
36  inline explicit XsSyncSettingArray(XsSize sz = 0, XsSyncSetting const* src = 0)
37  : ArrayImpl(sz, src)
38  {
39  }
40 
41  //! \brief Constructs an XsSyncSettingArray as a copy of \a other
42  inline XsSyncSettingArray(XsSyncSettingArray const& other)
43  : ArrayImpl(other)
44  {
45  }
46 
47  //! \brief Constructs an XsSyncSettingArray that references the data supplied in \a ref
48  inline explicit XsSyncSettingArray(XsSyncSetting* ref, XsSize sz, XsDataFlags flags = XSDF_None)
49  : ArrayImpl(ref, sz, flags)
50  {
51  }
52 
53 #ifndef XSENS_NOITERATOR
54  //! \brief Constructs an XsSyncSettingArray with the array bound by the supplied iterators \a beginIt and \a endIt
55  template <typename Iterator>
56  inline XsSyncSettingArray(Iterator beginIt, Iterator endIt)
57  : ArrayImpl(beginIt, endIt)
58  {
59  }
60 #endif
61 };
62 #endif
63 #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
A structure for storing all xsens sync settings.
Definition: xssyncsetting.h:35
GLuint src
Definition: glext.h:6303
No flag set.
Definition: xstypedefs.h:38
#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:37



Page generated by Doxygen 1.8.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020