|
| ArrayForObjectSorting () |
void | insertSortedObject (SortableObject *object) |
| Inserts a given object into array. More...
|
|
void | removeSortedObject (SortableObject *object) |
| Removes an object in array. More...
|
|
void | setObjectID_ofSortedObject (unsigned int tag, SortableObject *object) |
| Sets a new value of the key for the given object. More...
|
|
SortableObject * | objectWithObjectID (unsigned int tag) |
SortableObject * | getObjectWithObjectID (unsigned int tag) |
| Returns an object with given key and value. More...
|
|
unsigned int | indexOfSortedObject (SortableObject *obj) |
| Returns an index of the object with given key and value. More...
|
|
| ~Array () |
bool | init () |
| Initializes an array. More...
|
|
bool | initWithObject (Object *object) |
| Initializes an array with one object. More...
|
|
bool | initWithObjects (Object *object,...) CC_REQUIRES_NULL_TERMINATION |
| Initializes an array with some objects. More...
|
|
bool | initWithCapacity (int capacity) |
| Initializes an array with capacity. More...
|
|
bool | initWithArray (Array *otherArray) |
| Initializes an array with an existing array. More...
|
|
int | count () const |
| Returns element count of the array. More...
|
|
int | capacity () const |
| Returns capacity of the array. More...
|
|
int | getIndexOfObject (Object *object) const |
| Returns index of a certain object, return UINT_MAX if doesn't contain the object. More...
|
|
CC_DEPRECATED_ATTRIBUTE int | indexOfObject (Object *object) const |
local | indexOfObject ( local object) |
Object * | getObjectAtIndex (int index) |
| Returns an element with a certain index. More...
|
|
CC_DEPRECATED_ATTRIBUTE Object * | objectAtIndex (int index) |
Object * | getLastObject () |
| Returns the last element of the array. More...
|
|
CC_DEPRECATED_ATTRIBUTE Object * | lastObject () |
Object * | getRandomObject () |
| Returns a random element. More...
|
|
CC_DEPRECATED_ATTRIBUTE Object * | randomObject () |
local | randomObject () |
bool | containsObject (Object *object) const |
| Returns a Boolean value that indicates whether object is present in array. More...
|
|
bool | isEqualToArray (Array *otherArray) |
void | addObject (Object *object) |
| Add a certain object. More...
|
|
void | addObjectsFromArray (Array *otherArray) |
local | addObjectsFromArray ( local otherArray) |
void | insertObject (Object *object, int index) |
| Insert a certain object at a certain index. More...
|
|
void | setObject (Object *object, int index) |
| sets a certain object at a certain index More...
|
|
void | fastSetObject (Object *object, int index) |
| sets a certain object at a certain index without retaining. More...
|
|
void | swap (int indexOne, int indexTwo) |
void | removeLastObject (bool releaseObj=true) |
| Remove last object. More...
|
|
void | removeObject (Object *object, bool releaseObj=true) |
| Remove a certain object. More...
|
|
void | removeObjectAtIndex (int index, bool releaseObj=true) |
| Remove an element with a certain index. More...
|
|
void | removeObjectsInArray (Array *otherArray) |
| Remove all elements. More...
|
|
void | removeAllObjects () |
| Remove all objects. More...
|
|
void | fastRemoveObject (Object *object) |
| Fast way to remove a certain object. More...
|
|
void | fastRemoveObjectAtIndex (int index) |
| Fast way to remove an element with a certain index. More...
|
|
void | exchangeObject (Object *object1, Object *object2) |
| Swap two elements. More...
|
|
void | exchangeObjectAtIndex (int index1, int index2) |
| Swap two elements with certain indexes. More...
|
|
local | exchangeObjectAtIndex ( local index1, local index2) |
| Swap two elements with certain indexes. More...
|
|
void | replaceObjectAtIndex (int index, Object *object, bool releaseObject=true) |
| Replace object at index with another object. More...
|
|
void | reverseObjects () |
| Revers the array. More...
|
|
void | reduceMemoryFootprint () |
virtual void | acceptVisitor (DataVisitor &visitor) |
virtual Array * | clone () const |
| returns a copy of the object More...
|
|
Object ** | begin () |
Object ** | end () |
| Array () |
| Object () |
| Constructor. More...
|
|
virtual | ~Object () |
void | release () |
| Release the ownership immediately. More...
|
|
void | retain () |
| Retains the ownership. More...
|
|
Object * | autorelease () |
| Release the ownership sometime soon automatically. More...
|
|
bool | isSingleReference () const |
| Returns a boolean value that indicates whether there is only one reference to the object. More...
|
|
unsigned int | retainCount () const |
| Returns the object's current reference count. More...
|
|
virtual bool | isEqual (const Object *object) |
| Returns a boolean value that indicates whether this object and a given object are equal. More...
|
|
virtual void | update (float dt) |
virtual | ~Clonable () |
CC_DEPRECATED_ATTRIBUTE Object * | copy () const |
| returns a copy of the object. More...
|
|
local | copy () |
| returns a copy of the object. More...
|
|