|
| ~__Array () |
bool | init () |
| Initializes an array. More...
|
|
bool | initWithObject (Ref *object) |
| Initializes an array with one object. More...
|
|
bool | initWithObjects (Ref *object,...) CC_REQUIRES_NULL_TERMINATION |
| Initializes an array with some objects. More...
|
|
bool | initWithCapacity (ssize_t capacity) |
| Initializes an array with capacity. More...
|
|
bool | initWithArray (__Array *otherArray) |
| Initializes an array with an existing array. More...
|
|
ssize_t | count () const |
| Returns element count of the array. More...
|
|
local | count () |
| Returns element count of the array. More...
|
|
ssize_t | capacity () const |
| Returns capacity of the array. More...
|
|
local | capacity () |
| Returns capacity of the array. More...
|
|
ssize_t | getIndexOfObject (Ref *object) const |
| Returns index of a certain object, return UINT_MAX if doesn't contain the object. More...
|
|
CC_DEPRECATED_ATTRIBUTE ssize_t | indexOfObject (Ref *object) const |
local | indexOfObject ( local object) |
Ref * | getObjectAtIndex (ssize_t index) |
| Returns an element with a certain index. More...
|
|
CC_DEPRECATED_ATTRIBUTE Ref * | objectAtIndex (ssize_t index) |
local | objectAtIndex ( local index) |
Ref * | getLastObject () |
| Returns the last element of the array. More...
|
|
local | getLastObject () |
| Returns the last element of the array. More...
|
|
CC_DEPRECATED_ATTRIBUTE Ref * | lastObject () |
local | lastObject () |
Ref * | getRandomObject () |
| Returns a random element. More...
|
|
CC_DEPRECATED_ATTRIBUTE Ref * | randomObject () |
local | randomObject () |
bool | containsObject (Ref *object) const |
| Returns a Boolean value that indicates whether object is present in array. More...
|
|
bool | isEqualToArray (__Array *otherArray) |
void | addObject (Ref *object) |
| Add a certain object. More...
|
|
local | addObject ( local object) |
| Add a certain object. More...
|
|
void | addObjectsFromArray (__Array *otherArray) |
local | addObjectsFromArray ( local otherArray) |
void | insertObject (Ref *object, ssize_t index) |
| Insert a certain object at a certain index. More...
|
|
local | insertObject ( local object, local index) |
| Insert a certain object at a certain index. More...
|
|
void | setObject (Ref *object, ssize_t index) |
| sets a certain object at a certain index More...
|
|
void | fastSetObject (Ref *object, ssize_t index) |
| sets a certain object at a certain index without retaining. More...
|
|
void | swap (ssize_t indexOne, ssize_t indexTwo) |
void | removeLastObject (bool releaseObj=true) |
| Remove last object. More...
|
|
local | removeLastObject ( local true) |
| Remove last object. More...
|
|
void | removeObject (Ref *object, bool releaseObj=true) |
| Remove a certain object. More...
|
|
local | removeObject ( local object, local true) |
| Remove a certain object. More...
|
|
void | removeObjectAtIndex (ssize_t index, bool releaseObj=true) |
| Remove an element with a certain index. More...
|
|
local | removeObjectAtIndex ( local index, local true) |
| Remove an element with a certain index. More...
|
|
void | removeObjectsInArray (__Array *otherArray) |
| Remove all elements. More...
|
|
local | removeObjectsInArray ( local otherArray) |
| Remove all elements. More...
|
|
void | removeAllObjects () |
| Remove all objects. More...
|
|
local | removeAllObjects () |
| Remove all objects. More...
|
|
void | fastRemoveObject (Ref *object) |
| Fast way to remove a certain object. More...
|
|
local | fastRemoveObject ( local object) |
| Fast way to remove a certain object. More...
|
|
void | fastRemoveObjectAtIndex (ssize_t index) |
| Fast way to remove an element with a certain index. More...
|
|
void | exchangeObject (Ref *object1, Ref *object2) |
| Swap two elements. More...
|
|
local | exchangeObject ( local object1, local object2) |
| Swap two elements. More...
|
|
void | exchangeObjectAtIndex (ssize_t index1, ssize_t index2) |
| Swap two elements with certain indexes. More...
|
|
local | exchangeObjectAtIndex ( local index1, local index2) |
| Swap two elements with certain indexes. More...
|
|
void | replaceObjectAtIndex (ssize_t index, Ref *object, bool releaseObject=true) |
| Replace object at index with another object. More...
|
|
local | replaceObjectAtIndex ( local index, local object, local true) |
| Replace object at index with another object. More...
|
|
void | reverseObjects () |
| Revers the array. More...
|
|
void | reduceMemoryFootprint () |
var | reduceMemoryFootprint () |
local | reduceMemoryFootprint () |
virtual void | acceptVisitor (DataVisitor &visitor) |
var | acceptVisitor ( var visitor) |
local | acceptVisitor ( local visitor) |
virtual __Array * | clone () const |
| returns a copy of the Ref More...
|
|
Ref ** | begin () |
Ref ** | end () |
| __Array () |
void | retain () |
| Retains the ownership. More...
|
|
void | release () |
| Releases the ownership immediately. More...
|
|
Ref * | autorelease () |
| Releases the ownership sometime soon automatically. More...
|
|
unsigned int | getReferenceCount () const |
| Returns the Ref's current reference count. More...
|
|
virtual | ~Ref () |
virtual | ~Clonable () |
CC_DEPRECATED_ATTRIBUTE Ref * | copy () const |
| returns a copy of the Ref. More...
|
|
local | copy () |
| returns a copy of the Ref. More...
|
|