Create and return a new empty set.
Class CCSet
#include <Geode/cocos/cocoa/CCSet.h>
classCCSet:publiccocos2d::CCObject{ ... }
No description provided
Examples0
Public static methods1
staticcocos2d::CCSet*create()
Public member functions11
cocos2d::CCSet*copy()
Return a copy of the CCSet, it will copy all the elements.
cocos2d::CCSet*mutableCopy()
It is the same as copy().
intcount()
Return the number of elements the CCSet contains.
voidaddObject(cocos2d::CCObject*pObject)
Add a element into CCSet, it will retain the element.
voidremoveObject(cocos2d::CCObject*pObject)
Remove the given element, nothing todo if no element equals pObject.
voidremoveAllObjects()
Remove all elements of the set
boolcontainsObject(cocos2d::CCObject*pObject)
Check if CCSet contains a element equals pObject.
cocos2d::CCSetIteratorbegin()
Return the iterator that points to the first element.
cocos2d::CCSetIteratorend()
Return the iterator that points to the position after the last element.
cocos2d::CCObject*anyObject()
Return the first element if it contains elements, or null if it doesn’t contain any element.
virtualvoidacceptVisitor(cocos2d::CCDataVisitor&visitor)
No description provided
Fields1
;
No description provided