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



Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019