Main MRPT website > C++ reference for MRPT 1.9.9
xsintlist.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 XSINTLIST_H
10 #define XSINTLIST_H
11 
12 #include "xsintarray.h"
13 
14 #define XsIntList XsIntArray
15 
16 #ifndef __cplusplus
17 // obsolete:
18 #define XSINTLIST_INITIALIZER XsIntArray_INITIALIZER
19 #define XsIntList_construct(thisPtr, sz, src) \
20  XsIntArray_construct(thisPtr, sz, src)
21 #define XsIntList_assign(thisPtr, sz, src) XsArray_assign(thisPtr, sz, src)
22 #define XsIntList_destruct(thisPtr) XsArray_destruct(thisPtr)
23 #define XsIntList_copy(thisPtr, copy) XsArray_copy(copy, thisPtr)
24 #define XsIntList_append(thisPtr, other) XsArray_append(thisPtr, other)
25 #define XsIntList_popFront(thisPtr, count) XsArray_erase(thisPtr, 0, count)
26 #define XsIntList_popBack(thisPtr, count) \
27  XsArray_erase(thisPtr, (XsSize)-1, count)
28 #define XsIntList_swap(a, b) XsArray_swap(a, b)
29 #define XsIntList_erase(thisPtr, index, count) \
30  XsArray_erase(thisPtr, index, count)
31 #define XsIntList_find(thisPtr, needle) XsArray_find(thisPtr, needle)
32 
33 #endif
34 #endif // file guard
xsintarray.h



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