MRPT  1.9.9
xsint64array.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 XSINT64ARRAY_H
10 #define XSINT64ARRAY_H
11 
12 #include "pstdint.h"
13 #include "xsarray.h"
14 
15 #ifdef __cplusplus
16 extern "C"
17 {
18 #endif
19 
21 
22 #ifndef __cplusplus
23 #define XSINT64ARRAY_INITIALIZER XSARRAY_INITIALIZER(&g_xsInt64ArrayDescriptor)
25  typedef struct XsInt64Array XsInt64Array;
26 
28  XsInt64Array* thisPtr, XsSize count, int64_t const* src);
29 
30 #else
31 } // extern "C"
32 #endif
33 
34 #ifdef __cplusplus
35  struct XsInt64Array
36  : public XsArrayImpl<int64_t, g_xsInt64ArrayDescriptor, XsInt64Array>
37  {
38  //! \brief Constructs an XsInt64Array
39  inline explicit XsInt64Array(XsSize sz = 0, int64_t const* src = 0)
40  : ArrayImpl(sz, src)
41  {
42  }
43 
44  //! \brief Constructs an XsInt64Array as a copy of \a other
45  inline XsInt64Array(XsInt64Array const& other) : ArrayImpl(other) {}
46  //! \brief Constructs an XsInt64Array that references the data supplied
47  //! in \a ref
48  inline explicit XsInt64Array(
49  int64_t* ref, XsSize sz, XsDataFlags flags = XSDF_None)
50  : ArrayImpl(ref, sz, flags)
51  {
52  }
53 
54 #ifndef XSENS_NOITERATOR
55  //! \brief Constructs an XsInt64Array with the array bound by the
56  //! supplied iterators \a beginIt and \a endIt
57  template <typename Iterator>
58  inline XsInt64Array(Iterator beginIt, Iterator endIt)
59  : ArrayImpl(beginIt, endIt)
60  {
61  }
62 #endif
63  };
64 #endif
65 
66 #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
struct XsInt64Array XsInt64Array
Definition: xsint64array.h:25
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
__int64 int64_t
Definition: rptypes.h:52
XsArrayDescriptor const XSTYPES_DLL_API g_xsInt64ArrayDescriptor
#define XSTYPES_DLL_API
Definition: xstypesconfig.h:9
XSARRAY_STRUCT(XsInt64Array, int64_t)
XSTYPES_DLL_API void XsInt64Array_construct(XsInt64Array *thisPtr, XsSize count, int64_t 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