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



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