|
cocos2d-x
3.3
|
#include <CCSet.h>
Public Member Functions | |
| __Set (void) | |
| ctor More... | |
| __Set (const __Set &rSetObject) | |
| virtual | ~__Set (void) |
| NA NA More... | |
| __Set * | copy () |
| Return a copy of the Set, it will copy all the elements. More... | |
| __Set * | mutableCopy () |
| It is the same as copy(). More... | |
| int | count () |
| Return the number of elements the Set contains. More... | |
| void | addObject (Ref *pObject) |
| Add a element into Set, it will retain the element. More... | |
| void | removeObject (Ref *pObject) |
| Remove the given element, nothing todo if no element equals pObject. More... | |
| void | removeAllObjects () |
| Remove all elements of the set. More... | |
| bool | containsObject (Ref *pObject) |
| Check if Set contains a element equals pObject. More... | |
| __SetIterator | begin () |
| Return the iterator that points to the first element. More... | |
| __SetIterator | end () |
| Return the iterator that points to the position after the last element. More... | |
| Ref * | anyObject () |
| Return the first element if it contains elements, or null if it doesn't contain any element. More... | |
| virtual void | acceptVisitor (DataVisitor &visitor) |
| NA NA More... | |
Public Member Functions inherited from Ref | |
| 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 () |
| NA NA More... | |
Static Public Member Functions | |
| static __Set * | create () |
| Create and return a new empty set. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Ref | |
| Ref () | |
| Constructor. More... | |
Protected Attributes inherited from Ref | |
| unsigned int | _referenceCount |
| count of references More... | |
| __Set | ( | void | ) |
ctor
|
virtual |
NA NA
|
virtual |
NA NA
| void addObject | ( | Ref * | pObject | ) |
Add a element into Set, it will retain the element.
| Ref* anyObject | ( | ) |
Return the first element if it contains elements, or null if it doesn't contain any element.
| __SetIterator begin | ( | ) |
Return the iterator that points to the first element.
NA NA
| bool containsObject | ( | Ref * | pObject | ) |
Check if Set contains a element equals pObject.
| __Set* copy | ( | ) |
Return a copy of the Set, it will copy all the elements.
| int count | ( | ) |
Return the number of elements the Set contains.
|
static |
Create and return a new empty set.
| __SetIterator 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 | ( | Ref * | pObject | ) |
Remove the given element, nothing todo if no element equals pObject.