FreeRDP
ArrayList.c File Reference
#include <winpr/crt.h>
#include <winpr/collections.h>

Functions

int ArrayList_Capacity (wArrayList *arrayList)
 
int ArrayList_Count (wArrayList *arrayList)
 
int ArrayList_Items (wArrayList *arrayList, ULONG_PTR **ppItems)
 
BOOL ArrayList_IsFixedSized (wArrayList *arrayList)
 
BOOL ArrayList_IsReadOnly (wArrayList *arrayList)
 
BOOL ArrayList_IsSynchronized (wArrayList *arrayList)
 
void ArrayList_Lock (wArrayList *arrayList)
 
void ArrayList_Unlock (wArrayList *arrayList)
 
voidArrayList_GetItem (wArrayList *arrayList, int index)
 
void ArrayList_SetItem (wArrayList *arrayList, int index, void *obj)
 
BOOL ArrayList_Shift (wArrayList *arrayList, int index, int count)
 
void ArrayList_Clear (wArrayList *arrayList)
 
BOOL ArrayList_Contains (wArrayList *arrayList, void *obj)
 
int ArrayList_Add (wArrayList *arrayList, void *obj)
 
BOOL ArrayList_Insert (wArrayList *arrayList, int index, void *obj)
 
BOOL ArrayList_Remove (wArrayList *arrayList, void *obj)
 
BOOL ArrayList_RemoveAt (wArrayList *arrayList, int index)
 
int ArrayList_IndexOf (wArrayList *arrayList, void *obj, int startIndex, int count)
 
int ArrayList_LastIndexOf (wArrayList *arrayList, void *obj, int startIndex, int count)
 
static BOOL ArrayList_DefaultCompare (const void *objA, const void *objB)
 
wArrayList * ArrayList_New (BOOL synchronized)
 
void ArrayList_Free (wArrayList *arrayList)
 

Function Documentation

int ArrayList_Add ( wArrayList *  arrayList,
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:

int ArrayList_Capacity ( wArrayList *  arrayList)

WinPR: Windows Portable Runtime System.Collections.ArrayList

Copyright 2012 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 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.

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL ArrayList_Contains ( wArrayList *  arrayList,
void obj 
)

Determines whether an element is in the ArrayList.

Here is the call graph for this function:

int ArrayList_Count ( wArrayList *  arrayList)

Gets the number of elements actually contained in the ArrayList.

Here is the caller graph for this function:

static BOOL ArrayList_DefaultCompare ( const void objA,
const void objB 
)
static

Here is the caller graph for this function:

void ArrayList_Free ( wArrayList *  arrayList)

Here is the call graph for this function:

Here is the caller graph for this function:

void* ArrayList_GetItem ( wArrayList *  arrayList,
int  index 
)

Gets the element at the specified index.

Here is the caller graph for this function:

int ArrayList_IndexOf ( wArrayList *  arrayList,
void obj,
int  startIndex,
int  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:

BOOL ArrayList_Insert ( wArrayList *  arrayList,
int  index,
void obj 
)

Here is the call graph for this function:

Here is the caller graph for this function:

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).

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

Gets the internal list of items contained in the ArrayList.

int ArrayList_LastIndexOf ( wArrayList *  arrayList,
void obj,
int  startIndex,
int  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:

void ArrayList_Lock ( wArrayList *  arrayList)

Lock access to the ArrayList

Here is the call graph for this function:

Here is the caller graph for this function:

wArrayList* ArrayList_New ( BOOL  synchronized)

Construction, Destruction

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL ArrayList_Remove ( wArrayList *  arrayList,
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:

BOOL ArrayList_RemoveAt ( wArrayList *  arrayList,
int  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:

void ArrayList_SetItem ( wArrayList *  arrayList,
int  index,
void obj 
)

Sets the element at the specified index.

BOOL ArrayList_Shift ( wArrayList *  arrayList,
int  index,
int  count 
)

Methods Shift a section of the list.

Here is the caller graph for this function:

void ArrayList_Unlock ( wArrayList *  arrayList)

Unlock access to the ArrayList

Here is the call graph for this function:

Here is the caller graph for this function: