|
cocos2d-iphone
1.0.1
Improved Cocos2D API Reference (iOS version) for Kobold2D developers
|
#include <CCArray.h>
Collaboration diagram for CCArray:Public Member Functions | |
| id | initWithCapacity: (NSUInteger capacity) |
| id | initWithArray: (CCArray *otherArray) |
| id | initWithNSArray: (NSArray *otherArray) |
| NSUInteger | count () |
| NSUInteger | capacity () |
| NSUInteger | indexOfObject: (id object) |
| id | objectAtIndex: (NSUInteger index) |
| BOOL | containsObject: (id object) |
| id | randomObject () |
| id | lastObject () |
| NSArray * | getNSArray () |
| void | addObject: (id object) |
| void | addObjectsFromArray: (CCArray *otherArray) |
| void | addObjectsFromNSArray: (NSArray *otherArray) |
| void | insertObject:atIndex: (id object,[atIndex] NSUInteger index) |
| void | removeLastObject () |
| void | removeObject: (id object) |
| void | removeObjectAtIndex: (NSUInteger index) |
| void | removeObjectsInArray: (CCArray *otherArray) |
| void | removeAllObjects () |
| void | fastRemoveObject: (id object) |
| void | fastRemoveObjectAtIndex: (NSUInteger index) |
| void | exchangeObject:withObject: (id object1,[withObject] id object2) |
| void | exchangeObjectAtIndex:withObjectAtIndex: (NSUInteger index1,[withObjectAtIndex] NSUInteger index2) |
| void | reverseObjects () |
| void | reduceMemoryFootprint () |
| void | makeObjectsPerformSelector: (SEL aSelector) |
| void | makeObjectsPerformSelector:withObject: (SEL aSelector,[withObject] id object) |
Static Public Member Functions | |
| id | array () |
| id | arrayWithCapacity: (NSUInteger capacity) |
| id | arrayWithArray: (CCArray *otherArray) |
| id | arrayWithNSArray: (NSArray *otherArray) |
Public Attributes | |
| ccArray * | data |
A faster alternative of NSArray. CCArray uses internally a c-array.