Main MRPT website > C++ reference for MRPT 1.9.9
Classes | Macros | Typedefs | Functions
xsarray.h File Reference
#include "xstypesconfig.h"
Include dependency graph for xsarray.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  XsArrayDescriptor
 This object describes how to treat the data in an array. More...
 
struct  XsArray
 

Macros

#define XSARRAY_DECL(T)
 
#define XSARRAY_STRUCT(S, T)
 
#define XSARRAY_INITIALIZER(D)
 

Typedefs

typedef struct XsArrayDescriptor XsArrayDescriptor
 
typedef struct XsArray XsArray
 

Functions

XSTYPES_DLL_API void XsArray_construct (void *thisPtr, XsArrayDescriptor const *const descriptor, XsSize count, void const *src)
 
XSTYPES_DLL_API void XsArray_copyConstruct (void *thisPtr, void const *src)
 
XSTYPES_DLL_API void XsArray_destruct (void *thisPtr)
 
XSTYPES_DLL_API void XsArray_assign (void *thisPtr, XsSize count, void const *src)
 
XSTYPES_DLL_API void XsArray_resize (void *thisPtr, XsSize count)
 
XSTYPES_DLL_API void XsArray_reserve (void *thisPtr, XsSize count)
 
XSTYPES_DLL_API void XsArray_copy (void *thisPtr, void const *src)
 
XSTYPES_DLL_API void XsArray_append (void *thisPtr, void const *other)
 
XSTYPES_DLL_API void XsArray_insert (void *thisPtr, XsSize index, XsSize count, void const *src)
 
XSTYPES_DLL_API void XsArray_erase (void *thisPtr, XsSize index, XsSize count)
 
XSTYPES_DLL_API void XsArray_swap (void *a, void *b)
 
XSTYPES_DLL_API int XsArray_compare (void const *a, void const *b)
 
XSTYPES_DLL_API int XsArray_compareSet (void const *a, void const *b)
 
XSTYPES_DLL_API int XsArray_find (void const *thisPtr, void const *needle)
 
XSTYPES_DLL_API void const * XsArray_at (void const *thisPtr, XsSize index)
 
XSTYPES_DLL_API voidXsArray_atIndex (void *thisPtr, XsSize index)
 
XSTYPES_DLL_API void XsArray_removeDuplicates (void *thisPtr)
 

Macro Definition Documentation

◆ XSARRAY_DECL

#define XSARRAY_DECL (   T)
Value:
T* const m_data; /*!< Pointer to contained data buffer */ \
const XsSize m_size; /*!< Size of used data buffer in number of items */ \
const XsSize \
m_reserved; /*!< Size of allocated data buffer in number of items */ \
const int m_flags; /*!< Flags for data management */ \
XsArrayDescriptor const* const \
m_descriptor;

Describes how to handle the items in the array

Definition at line 14 of file xsarray.h.

◆ XSARRAY_INITIALIZER

#define XSARRAY_INITIALIZER (   D)
Value:
{ \
0, 0, 0, XSDF_Managed, D \
}

Definition at line 35 of file xsarray.h.

◆ XSARRAY_STRUCT

#define XSARRAY_STRUCT (   S,
 
)
Value:
struct S \
{ \
XSARRAY_DECL(T) \
}

Definition at line 30 of file xsarray.h.

Typedef Documentation

◆ XsArray

typedef struct XsArray XsArray

Definition at line 175 of file xsarray.h.

◆ XsArrayDescriptor

Definition at line 97 of file xsarray.h.

Function Documentation

◆ XsArray_append()

XSTYPES_DLL_API void XsArray_append ( void thisPtr,
void const *  other 
)

◆ XsArray_assign()

XSTYPES_DLL_API void XsArray_assign ( void thisPtr,
XsSize  count,
void const *  src 
)

◆ XsArray_at()

XSTYPES_DLL_API void const* XsArray_at ( void const *  thisPtr,
XsSize  index 
)

◆ XsArray_atIndex()

XSTYPES_DLL_API void* XsArray_atIndex ( void thisPtr,
XsSize  index 
)

◆ XsArray_compare()

XSTYPES_DLL_API int XsArray_compare ( void const *  a,
void const *  b 
)

◆ XsArray_compareSet()

XSTYPES_DLL_API int XsArray_compareSet ( void const *  a,
void const *  b 
)

◆ XsArray_construct()

XSTYPES_DLL_API void XsArray_construct ( void thisPtr,
XsArrayDescriptor const *const  descriptor,
XsSize  count,
void const *  src 
)

◆ XsArray_copy()

XSTYPES_DLL_API void XsArray_copy ( void thisPtr,
void const *  src 
)

◆ XsArray_copyConstruct()

XSTYPES_DLL_API void XsArray_copyConstruct ( void thisPtr,
void const *  src 
)

◆ XsArray_destruct()

XSTYPES_DLL_API void XsArray_destruct ( void thisPtr)

◆ XsArray_erase()

XSTYPES_DLL_API void XsArray_erase ( void thisPtr,
XsSize  index,
XsSize  count 
)

◆ XsArray_find()

XSTYPES_DLL_API int XsArray_find ( void const *  thisPtr,
void const *  needle 
)

◆ XsArray_insert()

XSTYPES_DLL_API void XsArray_insert ( void thisPtr,
XsSize  index,
XsSize  count,
void const *  src 
)

◆ XsArray_removeDuplicates()

XSTYPES_DLL_API void XsArray_removeDuplicates ( void thisPtr)

◆ XsArray_reserve()

XSTYPES_DLL_API void XsArray_reserve ( void thisPtr,
XsSize  count 
)

◆ XsArray_resize()

XSTYPES_DLL_API void XsArray_resize ( void thisPtr,
XsSize  count 
)

◆ XsArray_swap()

XSTYPES_DLL_API void XsArray_swap ( void a,
void b 
)
mrpt::containers::m_size
size_t m_size
Number of elements accessed with write access so far.
Definition: ts_hash_map.h:180
XsSize
size_t XsSize
XsSize must be unsigned number!
Definition: xstypedefs.h:19
XSDF_Managed
@ XSDF_Managed
Definition: xstypedefs.h:49



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