cocos2d-x
2.2.3-gd2.113-rev1ec524e
|
#include <CCSet.h>
Public Member Functions | |
CCSet (void) | |
ctor NA More... | |
CCSet (const CCSet &rSetObject) | |
NA. More... | |
virtual | ~CCSet (void) |
NA NA. More... | |
CCSet * | copy () |
Return a copy of the CCSet, it will copy all the elements. More... | |
CCSet * | mutableCopy () |
It is the same as copy(). More... | |
int | 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... | |
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... | |
bool | containsObject (CCObject *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... | |
virtual void | acceptVisitor (CCDataVisitor &visitor) |
NA NA. More... | |
![]() | |
CCObject (void) | |
virtual | ~CCObject (void) |
NA. More... | |
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 | acceptVisitor (CCDataVisitor &visitor) |
virtual void | update (float dt) |
CCObject (const CCObject &) | |
CCObject & | operator= (const CCObject &) |
virtual void | encodeWithCoder (DS_Dictionary *) |
virtual bool | canEncode () |
CCObjectType | getObjType () const |
virtual int | getTag () const |
virtual void | setTag (int nTag) |
void | setObjType (CCObjectType) |
![]() | |
virtual CCObject * | copyWithZone (CCZone *pZone) |
Static Public Member Functions | |
static CCSet * | create () |
Create and return a new empty set. More... | |
![]() | |
static CCObject * | createWithCoder (DS_Dictionary *) |
Additional Inherited Members | |
![]() | |
unsigned int | m_uID |
int | m_nLuaID |
![]() | |
unsigned int | m_uReference |
unsigned int | m_uAutoReleaseCount |
int | m_nTag |
int | m_eObjType |
unsigned int | m_uObjectIdxInArray |
CCSet | ( | void | ) |
ctor NA
|
virtual |
NA NA.
|
virtual |
NA NA.
Reimplemented from CCObject.
CCObject * 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.
NA NA
int count | ( | ) |
Return the number of elements the CCSet contains.
|
static |
Create and return a new empty set.
NA
CCSetIterator end | ( | ) |
Return the iterator that points to the position after the last element.
NA NA
void removeAllObjects | ( | ) |
Remove all elements of the set.
void removeObject | ( | CCObject * | pObject | ) |
Remove the given element, nothing todo if no element equals pObject.