From e2315d92b5a4a05b3bb3620b1a68f6314488ffed Mon Sep 17 00:00:00 2001 From: minggo Date: Tue, 13 Sep 2011 09:31:54 +0800 Subject: [PATCH] fixed #709: write doxygen comment in CCSet.h --- cocos2dx/include/CCSet.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/cocos2dx/include/CCSet.h b/cocos2dx/include/CCSet.h index 327e018127..4b7dbb442d 100644 --- a/cocos2dx/include/CCSet.h +++ b/cocos2dx/include/CCSet.h @@ -39,14 +39,41 @@ public: CCSet(const CCSet &rSetObject); virtual ~CCSet(void); + /** + *@brief Return a copy of the CCSet, it will copy all the elelments. + */ CCSet* copy(); + /** + *@brief It is the same as copy(). + */ CCSet* mutableCopy(); + /** + *@brief Return the number of elements the CCSet contains. + */ int count(); + /** + *@brief Add a element into CCSet, it will retain the element. + */ void addObject(CCObject *pObject); + /** + *@brief Remove the given element, nothing todo if no element equals pObject. + */ void removeObject(CCObject *pObject); + /** + *@brief Check if CCSet contains a element equals pObject. + */ bool containsObject(CCObject *pObject); + /** + *@brief Return the iterator that points to the first element. + */ CCSetIterator begin(); + /** + *@brief Return the iterator that points to the poisition after the last element. + */ CCSetIterator end(); + /** + *@brief Return the first element if it contains elements, or null if it doesn't contain any element. + */ CCObject* anyObject(); private: