Class CCSet

#include <Geode/cocos/cocoa/CCSet.h>
classCCSet:publiccocos2d::CCObject{ ... }
No description provided
Examples0
Public static methods1
staticcocos2d::CCSet*create()

Create and return a new empty set.

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()

Add a element into CCSet, it will retain the element.

voidremoveObject()

Remove the given element, nothing todo if no element equals pObject.

voidremoveAllObjects()

Remove all elements of the set

boolcontainsObject()

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()
No description provided
Fields0
Protected member functions0
Protected fields0