MRPT  1.9.9
xsportinfoarray.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 XSPORTINFOARRAY_H
10 #define XSPORTINFOARRAY_H
11 
12 #include "xsarray.h"
13 #include "xsportinfo.h"
14 
15 #ifdef __cplusplus
16 extern "C"
17 {
18 #endif
19 
21 
22 #ifndef __cplusplus
23 #define XSPORTINFOARRAY_INITIALIZER \
24  XSARRAY_INITIALIZER(&g_xsPortInfoArrayDescriptor)
25  struct XsPortInfo;
26 
29 
31  XsPortInfoArray* thisPtr, XsSize count, struct XsPortInfo const* src);
32 #else
33 } // extern "C"
34 #endif
35 
36 #ifdef __cplusplus
37  struct XsPortInfoArray
38  : public XsArrayImpl<
39  XsPortInfo, g_xsPortInfoArrayDescriptor, XsPortInfoArray>
40  {
41  //! \brief Constructs an XsPortInfoArray
42  inline explicit XsPortInfoArray(
43  XsSize sz = 0, XsPortInfo const* src = 0)
44  : ArrayImpl(sz, src)
45  {
46  }
47 
48  //! \brief Constructs an XsPortInfoArray as a copy of \a other
49  inline XsPortInfoArray(XsPortInfoArray const& other) : ArrayImpl(other)
50  {
51  }
52  //! \brief Constructs an XsPortInfoArray that references the data
53  //! supplied in \a ref
54  inline explicit XsPortInfoArray(
56  : ArrayImpl(ref, sz, flags)
57  {
58  }
59 
60 #ifndef XSENS_NOITERATOR
61  //! \brief Constructs an XsPortInfoArray with the array bound by the
62  //! supplied iterators \a beginIt and \a endIt
63  template <typename Iterator>
64  inline XsPortInfoArray(Iterator beginIt, Iterator endIt)
65  : ArrayImpl(beginIt, endIt)
66  {
67  }
68 #endif
69  };
70 #endif
71 
72 #endif // file guard
XSTYPES_DLL_API void XsPortInfoArray_construct(XsPortInfoArray *thisPtr, XsSize count, struct XsPortInfo const *src)
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
XSARRAY_STRUCT(XsPortInfoArray, struct XsPortInfo)
size_t XsSize
XsSize must be unsigned number!
Definition: xstypedefs.h:19
GLuint src
Definition: glext.h:7397
No flag set.
Definition: xstypedefs.h:44
XsArrayDescriptor const XSTYPES_DLL_API g_xsPortInfoArrayDescriptor
#define XSTYPES_DLL_API
Definition: xstypesconfig.h:9
struct XsPortInfoArray XsPortInfoArray
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