FreeRDP
ArrayList.c File Reference
#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)
 
wObjectArrayList_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)
 

Function Documentation

◆ ArrayList_Append()

BOOL ArrayList_Append ( wArrayList *  arrayList,
const void *  obj 
)

Adds an object to the end of the ArrayList.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ArrayList_Capacity()

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.

◆ ArrayList_Clear()

void ArrayList_Clear ( wArrayList *  arrayList)

Removes all elements from the ArrayList.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ArrayList_Contains()

BOOL ArrayList_Contains ( wArrayList *  arrayList,
const void *  obj 
)

Determines whether an element is in the ArrayList.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ArrayList_Count()

size_t ArrayList_Count ( wArrayList *  arrayList)

Gets the number of elements actually contained in the ArrayList.

Here is the caller graph for this function:

◆ ArrayList_DefaultCompare()

static BOOL ArrayList_DefaultCompare ( const void *  objA,
const void *  objB 
)
static
Here is the caller graph for this function:

◆ ArrayList_EnsureCapacity()

static BOOL ArrayList_EnsureCapacity ( wArrayList *  arrayList,
size_t  count 
)
static

Methods

Here is the caller graph for this function:

◆ ArrayList_ForEach()

BOOL ArrayList_ForEach ( wArrayList *  arrayList,
ArrayList_ForEachFkt  fkt,
  ... 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ArrayList_ForEachAP()

BOOL ArrayList_ForEachAP ( wArrayList *  arrayList,
ArrayList_ForEachFkt  fkt,
va_list  ap 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ArrayList_Free()

void ArrayList_Free ( wArrayList *  arrayList)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ArrayList_GetItem()

void* ArrayList_GetItem ( wArrayList *  arrayList,
size_t  index 
)

Gets the element at the specified index.

Here is the caller graph for this function:

◆ ArrayList_IndexOf()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ArrayList_Insert()

BOOL ArrayList_Insert ( wArrayList *  arrayList,
size_t  index,
const void *  obj 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ArrayList_IsFixedSized()

BOOL ArrayList_IsFixedSized ( wArrayList *  arrayList)

Gets a value indicating whether the ArrayList has a fixed size.

◆ ArrayList_IsReadOnly()

BOOL ArrayList_IsReadOnly ( wArrayList *  arrayList)

Gets a value indicating whether the ArrayList is read-only.

◆ ArrayList_IsSynchronized()

BOOL ArrayList_IsSynchronized ( wArrayList *  arrayList)

Gets a value indicating whether access to the ArrayList is synchronized (thread safe).

◆ ArrayList_Items()

size_t ArrayList_Items ( wArrayList *  arrayList,
ULONG_PTR **  ppItems 
)

Gets the internal list of items contained in the ArrayList.

◆ ArrayList_LastIndexOf()

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.

Here is the call graph for this function:

◆ ArrayList_Lock()

void ArrayList_Lock ( wArrayList *  arrayList)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ArrayList_Lock_Conditional()

static void ArrayList_Lock_Conditional ( wArrayList *  arrayList)
static

Lock access to the ArrayList

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ArrayList_New()

wArrayList* ArrayList_New ( BOOL  synchronized)

Construction, Destruction

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ArrayList_Object()

wObject* ArrayList_Object ( wArrayList *  arrayList)
Here is the caller graph for this function:

◆ ArrayList_Remove()

BOOL ArrayList_Remove ( wArrayList *  arrayList,
const void *  obj 
)

Removes the first occurrence of a specific object from the ArrayList.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ArrayList_RemoveAt()

BOOL ArrayList_RemoveAt ( wArrayList *  arrayList,
size_t  index 
)

Removes the element at the specified index of the ArrayList.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ArrayList_SetItem()

BOOL ArrayList_SetItem ( wArrayList *  arrayList,
size_t  index,
const void *  obj 
)

Sets the element at the specified index.

Here is the caller graph for this function:

◆ ArrayList_Shift()

static BOOL ArrayList_Shift ( wArrayList *  arrayList,
size_t  index,
SSIZE_T  count 
)
static

Shift a section of the list.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ArrayList_Unlock()

void ArrayList_Unlock ( wArrayList *  arrayList)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ArrayList_Unlock_Conditional()

static void ArrayList_Unlock_Conditional ( wArrayList *  arrayList)
static

Unlock access to the ArrayList

Here is the call graph for this function:
Here is the caller graph for this function: