Files | |
| file | ccCArray.h |
Functions | |
| static void | ccArrayAppendArray (ccArray *arr, ccArray *plusArr) |
| static void | ccArrayAppendArrayWithResize (ccArray *arr, ccArray *plusArr) |
| static void | ccArrayAppendObject (ccArray *arr, id object) |
| static void | ccArrayAppendObjectWithResize (ccArray *arr, id object) |
| static BOOL | ccArrayContainsObject (ccArray *arr, id object) |
| static void | ccArrayDoubleCapacity (ccArray *arr) |
| static void | ccArrayEnsureExtraCapacity (ccArray *arr, NSUInteger extra) |
| static void | ccArrayFastRemoveObjectAtIndex (ccArray *arr, NSUInteger index) |
| static void | ccArrayFree (ccArray *arr) |
| static void | ccArrayFullRemoveArray (ccArray *arr, ccArray *minusArr) |
| static NSUInteger | ccArrayGetIndexOfObject (ccArray *arr, id object) |
| static void | ccArrayMakeObjectsPerformSelector (ccArray *arr, SEL sel) |
| static ccArray * | ccArrayNew (NSUInteger capacity) |
| static void | ccArrayRemoveAllObjects (ccArray *arr) |
| static void | ccArrayRemoveArray (ccArray *arr, ccArray *minusArr) |
| static void | ccArrayRemoveObject (ccArray *arr, id object) |
| static void | ccArrayRemoveObjectAtIndex (ccArray *arr, NSUInteger index) |
| static void | ccCArrayAppendArray (ccCArray *arr, ccCArray *plusArr) |
| static void | ccCArrayAppendArrayWithResize (ccCArray *arr, ccCArray *plusArr) |
| static void | ccCArrayAppendValue (ccCArray *arr, void *value) |
| static void | ccCArrayAppendValueWithResize (ccCArray *arr, void *value) |
| static BOOL | ccCArrayContainsValue (ccCArray *arr, void *value) |
| static void | ccCArrayDoubleCapacity (ccCArray *arr) |
| static void | ccCArrayEnsureExtraCapacity (ccCArray *arr, NSUInteger extra) |
| static void | ccCArrayFastRemoveValueAtIndex (ccCArray *arr, NSUInteger index) |
| static void | ccCArrayFree (ccCArray *arr) |
| static void | ccCArrayFullRemoveArray (ccCArray *arr, ccCArray *minusArr) |
| static NSUInteger | ccCArrayGetIndexOfValue (ccCArray *arr, void *value) |
| static void | ccCArrayInsertValueAtIndex (ccCArray *arr, void *value, NSUInteger index) |
| static ccCArray * | ccCArrayNew (NSUInteger capacity) |
| static void | ccCArrayRemoveAllValues (ccCArray *arr) |
| static void | ccCArrayRemoveArray (ccCArray *arr, ccCArray *minusArr) |
| static void | ccCArrayRemoveValue (ccCArray *arr, void *value) |
| static void | ccCArrayRemoveValueAtIndex (ccCArray *arr, NSUInteger index) |
| static void ccArrayAppendArray | ( | ccArray * | arr, | |
| ccArray * | plusArr | |||
| ) | [inline, static] |
Appends objects from plusArr to arr. Behaviour undefined if arr doesn't have enough capacity.
| static void ccArrayAppendArrayWithResize | ( | ccArray * | arr, | |
| ccArray * | plusArr | |||
| ) | [inline, static] |
Appends objects from plusArr to arr. Capacity of arr is increased if needed.
| static void ccArrayAppendObject | ( | ccArray * | arr, | |
| id | object | |||
| ) | [inline, static] |
Appends an object. Bahaviour undefined if array doesn't have enough capacity.
| static void ccArrayAppendObjectWithResize | ( | ccArray * | arr, | |
| id | object | |||
| ) | [inline, static] |
Appends an object. Capacity of arr is increased if needed.
| static BOOL ccArrayContainsObject | ( | ccArray * | arr, | |
| id | object | |||
| ) | [inline, static] |
Returns a Boolean value that indicates whether object is present in array.
| static void ccArrayDoubleCapacity | ( | ccArray * | arr | ) | [inline, static] |
Doubles array capacity
| static void ccArrayEnsureExtraCapacity | ( | ccArray * | arr, | |
| NSUInteger | extra | |||
| ) | [inline, static] |
Increases array capacity such that max >= num + extra.
| static void ccArrayFastRemoveObjectAtIndex | ( | ccArray * | arr, | |
| NSUInteger | index | |||
| ) | [inline, static] |
Removes object at specified index and fills the gap with the last object, thereby avoiding the need to push back subsequent objects. Behaviour undefined if index outside [0, num-1].
| static void ccArrayFree | ( | ccArray * | arr | ) | [inline, static] |
Frees array after removing all remaining objects. Silently ignores nil arr.
| static void ccArrayFullRemoveArray | ( | ccArray * | arr, | |
| ccArray * | minusArr | |||
| ) | [inline, static] |
Removes from arr all objects in minusArr. For each object in minusArr, all matching instances in arr will be removed.
| static NSUInteger ccArrayGetIndexOfObject | ( | ccArray * | arr, | |
| id | object | |||
| ) | [inline, static] |
Returns index of first occurence of object, NSNotFound if object not found.
| static void ccArrayMakeObjectsPerformSelector | ( | ccArray * | arr, | |
| SEL | sel | |||
| ) | [inline, static] |
Sends to each object in arr the message identified by given selector.
| static ccArray* ccArrayNew | ( | NSUInteger | capacity | ) | [inline, static] |
Allocates and initializes a new array with specified capacity
| static void ccArrayRemoveAllObjects | ( | ccArray * | arr | ) | [inline, static] |
Removes all objects from arr
| static void ccArrayRemoveArray | ( | ccArray * | arr, | |
| ccArray * | minusArr | |||
| ) | [inline, static] |
Removes from arr all objects in minusArr. For each object in minusArr, the first matching instance in arr will be removed.
| static void ccArrayRemoveObject | ( | ccArray * | arr, | |
| id | object | |||
| ) | [inline, static] |
Searches for the first occurance of object and removes it. If object is not found the function has no effect.
| static void ccArrayRemoveObjectAtIndex | ( | ccArray * | arr, | |
| NSUInteger | index | |||
| ) | [inline, static] |
Removes object at specified index and pushes back all subsequent objects. Behaviour undefined if index outside [0, num-1].
| static void ccCArrayAppendArray | ( | ccCArray * | arr, | |
| ccCArray * | plusArr | |||
| ) | [inline, static] |
Appends values from plusArr to arr. Behaviour undefined if arr doesn't have enough capacity.
| static void ccCArrayAppendArrayWithResize | ( | ccCArray * | arr, | |
| ccCArray * | plusArr | |||
| ) | [inline, static] |
Appends values from plusArr to arr. Capacity of arr is increased if needed.
| static void ccCArrayAppendValue | ( | ccCArray * | arr, | |
| void * | value | |||
| ) | [inline, static] |
Appends an value. Bahaviour undefined if array doesn't have enough capacity.
| static void ccCArrayAppendValueWithResize | ( | ccCArray * | arr, | |
| void * | value | |||
| ) | [inline, static] |
Appends an value. Capacity of arr is increased if needed.
| static BOOL ccCArrayContainsValue | ( | ccCArray * | arr, | |
| void * | value | |||
| ) | [inline, static] |
Returns a Boolean value that indicates whether value is present in the C array.
| static void ccCArrayDoubleCapacity | ( | ccCArray * | arr | ) | [inline, static] |
Doubles C array capacity
| static void ccCArrayEnsureExtraCapacity | ( | ccCArray * | arr, | |
| NSUInteger | extra | |||
| ) | [inline, static] |
Increases array capacity such that max >= num + extra.
| static void ccCArrayFastRemoveValueAtIndex | ( | ccCArray * | arr, | |
| NSUInteger | index | |||
| ) | [inline, static] |
Removes value at specified index and fills the gap with the last value, thereby avoiding the need to push back subsequent values. Behaviour undefined if index outside [0, num-1].
| static void ccCArrayFree | ( | ccCArray * | arr | ) | [inline, static] |
Frees C array after removing all remaining values. Silently ignores nil arr.
| static void ccCArrayFullRemoveArray | ( | ccCArray * | arr, | |
| ccCArray * | minusArr | |||
| ) | [inline, static] |
Removes from arr all values in minusArr. For each value in minusArr, all matching instances in arr will be removed.
| static NSUInteger ccCArrayGetIndexOfValue | ( | ccCArray * | arr, | |
| void * | value | |||
| ) | [inline, static] |
Returns index of first occurence of value, NSNotFound if value not found.
| static void ccCArrayInsertValueAtIndex | ( | ccCArray * | arr, | |
| void * | value, | |||
| NSUInteger | index | |||
| ) | [inline, static] |
Inserts a value at a certain position. Behaviour undefined if aray doesn't have enough capacity
| static ccCArray* ccCArrayNew | ( | NSUInteger | capacity | ) | [inline, static] |
Allocates and initializes a new C array with specified capacity
| static void ccCArrayRemoveAllValues | ( | ccCArray * | arr | ) | [inline, static] |
Removes all values from arr
| static void ccCArrayRemoveArray | ( | ccCArray * | arr, | |
| ccCArray * | minusArr | |||
| ) | [inline, static] |
Removes from arr all values in minusArr. For each Value in minusArr, the first matching instance in arr will be removed.
| static void ccCArrayRemoveValue | ( | ccCArray * | arr, | |
| void * | value | |||
| ) | [inline, static] |
Searches for the first occurance of value and removes it. If value is not found the function has no effect.
| static void ccCArrayRemoveValueAtIndex | ( | ccCArray * | arr, | |
| NSUInteger | index | |||
| ) | [inline, static] |
Removes value at specified index and pushes back all subsequent values. Behaviour undefined if index outside [0, num-1].
1.7.1