Main MRPT website > C++ reference for MRPT 1.5.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)   struct S { XSARRAY_DECL(T) }
 
#define XSARRAY_INITIALIZER(D)   { 0, 0, 0, XSDF_Managed, 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;
size_t XsSize
XsSize must be unsigned number!
Definition: xstypedefs.h:17
size_t m_size
Number of elements accessed with write access so far.
Definition: ts_hash_map.h:103

Describes how to handle the items in the array

Definition at line 14 of file xsarray.h.

◆ XSARRAY_INITIALIZER

#define XSARRAY_INITIALIZER (   D)    { 0, 0, 0, XSDF_Managed, D }

Definition at line 27 of file xsarray.h.

◆ XSARRAY_STRUCT

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

Definition at line 26 of file xsarray.h.

Typedef Documentation

◆ XsArray

typedef struct XsArray XsArray

Definition at line 147 of file xsarray.h.

◆ XsArrayDescriptor

Definition at line 66 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 
)



Page generated by Doxygen 1.8.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020