FreeRDP
|
#include <winpr/config.h>
#include <stdarg.h>
#include <winpr/crt.h>
#include <winpr/assert.h>
#include <winpr/collections.h>
Functions | |
size_t | ArrayList_Capacity (wArrayList *arrayList) |
size_t | ArrayList_Count (wArrayList *arrayList) |
size_t | ArrayList_Items (wArrayList *arrayList, ULONG_PTR **ppItems) |
BOOL | ArrayList_IsFixedSized (wArrayList *arrayList) |
BOOL | ArrayList_IsReadOnly (wArrayList *arrayList) |
BOOL | ArrayList_IsSynchronized (wArrayList *arrayList) |
static void | ArrayList_Lock_Conditional (wArrayList *arrayList) |
void | ArrayList_Lock (wArrayList *arrayList) |
static void | ArrayList_Unlock_Conditional (wArrayList *arrayList) |
void | ArrayList_Unlock (wArrayList *arrayList) |
void * | ArrayList_GetItem (wArrayList *arrayList, size_t index) |
BOOL | ArrayList_SetItem (wArrayList *arrayList, size_t index, const void *obj) |
static BOOL | ArrayList_EnsureCapacity (wArrayList *arrayList, size_t count) |
static BOOL | ArrayList_Shift (wArrayList *arrayList, size_t index, SSIZE_T count) |
void | ArrayList_Clear (wArrayList *arrayList) |
BOOL | ArrayList_Contains (wArrayList *arrayList, const void *obj) |
BOOL | ArrayList_Append (wArrayList *arrayList, const void *obj) |
BOOL | ArrayList_Insert (wArrayList *arrayList, size_t index, const void *obj) |
BOOL | ArrayList_Remove (wArrayList *arrayList, const void *obj) |
BOOL | ArrayList_RemoveAt (wArrayList *arrayList, size_t index) |
SSIZE_T | ArrayList_IndexOf (wArrayList *arrayList, const void *obj, SSIZE_T startIndex, SSIZE_T count) |
SSIZE_T | ArrayList_LastIndexOf (wArrayList *arrayList, const void *obj, SSIZE_T startIndex, SSIZE_T count) |
static BOOL | ArrayList_DefaultCompare (const void *objA, const void *objB) |
wObject * | ArrayList_Object (wArrayList *arrayList) |
BOOL | ArrayList_ForEach (wArrayList *arrayList, ArrayList_ForEachFkt fkt,...) |
BOOL | ArrayList_ForEachAP (wArrayList *arrayList, ArrayList_ForEachFkt fkt, va_list ap) |
wArrayList * | ArrayList_New (BOOL synchronized) |
void | ArrayList_Free (wArrayList *arrayList) |
BOOL ArrayList_Append | ( | wArrayList * | arrayList, |
const void * | obj | ||
) |
Adds an object to the end of the ArrayList.
size_t ArrayList_Capacity | ( | wArrayList * | arrayList | ) |
C equivalent of the C# ArrayList Class: http://msdn.microsoft.com/en-us/library/system.collections.arraylist.aspx Properties Gets or sets the number of elements that the ArrayList can contain.
void ArrayList_Clear | ( | wArrayList * | arrayList | ) |
Removes all elements from the ArrayList.
BOOL ArrayList_Contains | ( | wArrayList * | arrayList, |
const void * | obj | ||
) |
Determines whether an element is in the ArrayList.
size_t ArrayList_Count | ( | wArrayList * | arrayList | ) |
Gets the number of elements actually contained in the ArrayList.
|
static |
|
static |
Methods
BOOL ArrayList_ForEach | ( | wArrayList * | arrayList, |
ArrayList_ForEachFkt | fkt, | ||
... | |||
) |
BOOL ArrayList_ForEachAP | ( | wArrayList * | arrayList, |
ArrayList_ForEachFkt | fkt, | ||
va_list | ap | ||
) |
void ArrayList_Free | ( | wArrayList * | arrayList | ) |
void* ArrayList_GetItem | ( | wArrayList * | arrayList, |
size_t | index | ||
) |
Gets the element at the specified index.
SSIZE_T ArrayList_IndexOf | ( | wArrayList * | arrayList, |
const void * | obj, | ||
SSIZE_T | startIndex, | ||
SSIZE_T | count | ||
) |
Searches for the specified Object and returns the zero-based index of the first occurrence within the entire ArrayList.
Searches for the specified Object and returns the zero-based index of the last occurrence within the range of elements in the ArrayList that extends from the first element to the specified index.
Searches for the specified Object and returns the zero-based index of the last occurrence within the range of elements in the ArrayList that contains the specified number of elements and ends at the specified index.
BOOL ArrayList_Insert | ( | wArrayList * | arrayList, |
size_t | index, | ||
const void * | obj | ||
) |
BOOL ArrayList_IsFixedSized | ( | wArrayList * | arrayList | ) |
Gets a value indicating whether the ArrayList has a fixed size.
BOOL ArrayList_IsReadOnly | ( | wArrayList * | arrayList | ) |
Gets a value indicating whether the ArrayList is read-only.
BOOL ArrayList_IsSynchronized | ( | wArrayList * | arrayList | ) |
Gets a value indicating whether access to the ArrayList is synchronized (thread safe).
size_t ArrayList_Items | ( | wArrayList * | arrayList, |
ULONG_PTR ** | ppItems | ||
) |
Gets the internal list of items contained in the ArrayList.
SSIZE_T ArrayList_LastIndexOf | ( | wArrayList * | arrayList, |
const void * | obj, | ||
SSIZE_T | startIndex, | ||
SSIZE_T | count | ||
) |
Searches for the specified Object and returns the zero-based index of the last occurrence within the entire ArrayList.
Searches for the specified Object and returns the zero-based index of the last occurrence within the range of elements in the ArrayList that extends from the first element to the specified index.
Searches for the specified Object and returns the zero-based index of the last occurrence within the range of elements in the ArrayList that contains the specified number of elements and ends at the specified index.
void ArrayList_Lock | ( | wArrayList * | arrayList | ) |
|
static |
Lock access to the ArrayList
wArrayList* ArrayList_New | ( | BOOL | synchronized | ) |
Construction, Destruction
wObject* ArrayList_Object | ( | wArrayList * | arrayList | ) |
BOOL ArrayList_Remove | ( | wArrayList * | arrayList, |
const void * | obj | ||
) |
Removes the first occurrence of a specific object from the ArrayList.
BOOL ArrayList_RemoveAt | ( | wArrayList * | arrayList, |
size_t | index | ||
) |
Removes the element at the specified index of the ArrayList.
BOOL ArrayList_SetItem | ( | wArrayList * | arrayList, |
size_t | index, | ||
const void * | obj | ||
) |
Sets the element at the specified index.
|
static |
Shift a section of the list.
void ArrayList_Unlock | ( | wArrayList * | arrayList | ) |
|
static |
Unlock access to the ArrayList