#include <CCSet.h>
Public Member Functions | |
| CCSet (void) | |
| ctor () | |
| CCSet (const CCSet &rSetObject) | |
| CCSet ( var rSetObject) | |
| virtual | ~CCSet (void) |
| CCSet * | copy () |
| Return a copy of the CCSet, it will copy all the elements. More... | |
| var | copy () |
| Return a copy of the CCSet, it will copy all the elements. More... | |
| local | copy () |
| Return a copy of the CCSet, it will copy all the elements. More... | |
| CCSet * | mutableCopy () |
| It is the same as copy(). More... | |
| var | mutableCopy () |
| It is the same as copy(). More... | |
| int | count () |
| Return the number of elements the CCSet contains. More... | |
| var | count () |
| Return the number of elements the CCSet contains. More... | |
| local | count () |
| Return the number of elements the CCSet contains. More... | |
| void | addObject (CCObject *pObject) |
| Add a element into CCSet, it will retain the element. More... | |
| var | addObject ( var pObject) |
| Add a element into CCSet, it will retain the element. More... | |
| local | addObject ( local pObject) |
| Add a element into CCSet, it will retain the element. More... | |
| void | removeObject (CCObject *pObject) |
| Remove the given element, nothing todo if no element equals pObject. More... | |
| void | removeAllObjects () |
| Remove all elements of the set. More... | |
| var | removeAllObjects () |
| Remove all elements of the set. More... | |
| bool | containsObject (CCObject *pObject) |
| Check if CCSet contains a element equals pObject. More... | |
| var | containsObject ( var pObject) |
| Check if CCSet contains a element equals pObject. More... | |
| local | containsObject ( local pObject) |
| Check if CCSet contains a element equals pObject. More... | |
| CCSetIterator | begin () |
| Return the iterator that points to the first element. More... | |
| CCSetIterator | end () |
| Return the iterator that points to the position after the last element. More... | |
| CCObject * | anyObject () |
| Return the first element if it contains elements, or null if it doesn't contain any element. More... | |
| local | anyObject () |
| Return the first element if it contains elements, or null if it doesn't contain any element. More... | |
| virtual void | acceptVisitor (CCDataVisitor &visitor) |
Public Member Functions inherited from CCObject | |
| CCObject (void) | |
| virtual | ~CCObject (void) |
| void | release (void) |
| void | retain (void) |
| CCObject * | autorelease (void) |
| CCObject * | copy (void) |
| bool | isSingleReference (void) const |
| unsigned int | retainCount (void) const |
| virtual bool | isEqual (const CCObject *pObject) |
| virtual void | update (float dt) |
Public Member Functions inherited from CCCopying | |
| virtual CCObject * | copyWithZone (CCZone *pZone) |
Static Public Member Functions | |
| static CCSet * | create () |
| Create and return a new empty set. More... | |
Additional Inherited Members | |
Public Attributes inherited from CCObject | |
| unsigned int | m_uID |
| int | m_nLuaID |
Protected Attributes inherited from CCObject | |
| unsigned int | m_uReference |
| unsigned int | m_uAutoReleaseCount |
| CCSet | ( | void | ) |
| var ctor | ( | ) |
| var CCSet | ( | var | rSetObject) |
|
virtual |
|
virtual |
Reimplemented from CCObject.
| var addObject | ( | var | pObject) |
Add a element into CCSet, it will retain the element.
| local addObject | ( | local | pObject) |
Add a element into CCSet, it will retain the element.
| CCObject* anyObject | ( | ) |
Return the first element if it contains elements, or null if it doesn't contain any element.
| var anyObject | ( | ) |
Return the first element if it contains elements, or null if it doesn't contain any element.
| local anyObject | ( | ) |
Return the first element if it contains elements, or null if it doesn't contain any element.
| CCSetIterator begin | ( | ) |
Return the iterator that points to the first element.
| var containsObject | ( | var | pObject) |
Check if CCSet contains a element equals pObject.
| local containsObject | ( | local | pObject) |
Check if CCSet contains a element equals pObject.
| var copy | ( | ) |
Return a copy of the CCSet, it will copy all the elements.
| local copy | ( | ) |
Return a copy of the CCSet, it will copy all the elements.
| int count | ( | ) |
Return the number of elements the CCSet contains.
| var count | ( | ) |
Return the number of elements the CCSet contains.
| local count | ( | ) |
Return the number of elements the CCSet contains.
|
static |
Create and return a new empty set.
|
static |
Create and return a new empty set.
| CCSetIterator end | ( | ) |
Return the iterator that points to the position after the last element.
| var mutableCopy | ( | ) |
It is the same as copy().
| void removeAllObjects | ( | ) |
Remove all elements of the set.
| var removeAllObjects | ( | ) |
Remove all elements of the set.
| local removeAllObjects | ( | ) |
Remove all elements of the set.
| void removeObject | ( | CCObject * | pObject) |
Remove the given element, nothing todo if no element equals pObject.
| var removeObject | ( | var | pObject) |
Remove the given element, nothing todo if no element equals pObject.
| local removeObject | ( | local | pObject) |
Remove the given element, nothing todo if no element equals pObject.