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



Page generated by Doxygen 1.8.14 for MRPT 1.5.6 Git: 4c65e8431 Tue Apr 24 08:18:17 2018 +0200 at lun oct 28 01:35:26 CET 2019