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



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