123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- #ifndef __CC_SET_H__
- #define __CC_SET_H__
- #include <set>
- #include "base/CCRef.h"
- #include "base/CCDataVisitor.h"
- NS_CC_BEGIN
- typedef std::set<Ref *>::iterator __SetIterator;
- class CC_DLL __Set : public Ref
- {
- public:
-
- __Set(void);
- __Set(const __Set &rSetObject);
-
- virtual ~__Set(void);
-
- static __Set * create();
-
- __Set* copy();
-
- __Set* mutableCopy();
-
- int count();
-
- void addObject(Ref *pObject);
-
- void removeObject(Ref *pObject);
-
- void removeAllObjects();
-
- bool containsObject(Ref *pObject);
-
- __SetIterator begin();
-
- __SetIterator end();
-
- Ref* anyObject();
-
- virtual void acceptVisitor(DataVisitor &visitor);
- private:
- std::set<Ref *> *_set;
- };
- NS_CC_END
- #endif
|