cocos2d-x  2.2.3-gd2.113-rev1ec524e
Loading...
Searching...
No Matches
CCSet Class Reference

#include <CCSet.h>

Inheritance diagram for CCSet:
[legend]
Collaboration diagram for CCSet:
[legend]

Public Member Functions

 CCSet (void)
 ctor NA More...
 
 CCSet (const CCSet &rSetObject)
 NA. More...
 
virtual ~CCSet (void)
 NA NA. More...
 
CCSet * copy ()
 Return a copy of the CCSet, it will copy all the elements. More...
 
CCSet * mutableCopy ()
 It is the same as copy(). More...
 
int count ()
 Return the number of elements the CCSet contains. More...
 
void addObject (CCObject *pObject)
 Add a element into CCSet, it will retain the element. More...
 
void removeObject (CCObject *pObject)
 Remove the given element, nothing todo if no element equals pObject. More...
 
void removeAllObjects ()
 Remove all elements of the set. More...
 
bool containsObject (CCObject *pObject)
 Check if CCSet contains a element equals pObject. More...
 
CCSetIterator begin ()
 Return the iterator that points to the first element. More...
 
CCSetIterator end ()
 Return the iterator that points to the position after the last element. More...
 
CCObject * anyObject ()
 Return the first element if it contains elements, or null if it doesn't contain any element. More...
 
virtual void acceptVisitor (CCDataVisitor &visitor)
 NA NA. More...
 
- Public Member Functions inherited from CCObject
 CCObject (void)
 
virtual ~CCObject (void)
 NA. More...
 
void release (void)
 
void retain (void)
 
CCObject * autorelease (void)
 
CCObject * copy (void)
 
bool isSingleReference (void) const
 
unsigned int retainCount (void) const
 
virtual bool isEqual (const CCObject *pObject)
 
virtual void acceptVisitor (CCDataVisitor &visitor)
 
virtual void update (float dt)
 
 CCObject (const CCObject &)
 
CCObject & operator= (const CCObject &)
 
virtual void encodeWithCoder (DS_Dictionary *)
 
virtual bool canEncode ()
 
CCObjectType getObjType () const
 
virtual int getTag () const
 
virtual void setTag (int nTag)
 
void setObjType (CCObjectType)
 
- Public Member Functions inherited from CCCopying
virtual CCObject * copyWithZone (CCZone *pZone)
 

Static Public Member Functions

static CCSet * create ()
 Create and return a new empty set. More...
 
- Static Public Member Functions inherited from CCObject
static CCObject * createWithCoder (DS_Dictionary *)
 

Additional Inherited Members

- Public Attributes inherited from CCObject
unsigned int m_uID
 
int m_nLuaID
 
- Protected Attributes inherited from CCObject
unsigned int m_uReference
 
unsigned int m_uAutoReleaseCount
 
int m_nTag
 
int m_eObjType
 
unsigned int m_uObjectIdxInArray
 

Constructor & Destructor Documentation

◆ CCSet() [1/2]

CCSet ( void  )

ctor NA

◆ CCSet() [2/2]

CCSet ( const CCSet &  rSetObject)

NA.

◆ ~CCSet()

virtual ~CCSet ( void  )
virtual

NA NA.

Member Function Documentation

◆ acceptVisitor()

virtual void acceptVisitor ( CCDataVisitor &  visitor)
virtual

NA NA.

Reimplemented from CCObject.

◆ addObject()

void addObject ( CCObject *  pObject)

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

◆ anyObject()

CCObject * anyObject ( )

Return the first element if it contains elements, or null if it doesn't contain any element.

◆ begin()

CCSetIterator begin ( )

Return the iterator that points to the first element.

NA NA

◆ containsObject()

bool containsObject ( CCObject *  pObject)

Check if CCSet contains a element equals pObject.

◆ copy()

CCSet * copy ( )

Return a copy of the CCSet, it will copy all the elements.

◆ count()

int count ( )

Return the number of elements the CCSet contains.

◆ create()

static CCSet * create ( )
static

Create and return a new empty set.

NA

◆ end()

CCSetIterator end ( )

Return the iterator that points to the position after the last element.

NA NA

◆ mutableCopy()

CCSet * mutableCopy ( )

It is the same as copy().

NA

◆ removeAllObjects()

void removeAllObjects ( )

Remove all elements of the set.

◆ removeObject()

void removeObject ( CCObject *  pObject)

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


The documentation for this class was generated from the following file: