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



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