cocos2d-x  2.2.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CCSet Class Reference

#include <CCSet.h>

Inheritance diagram for CCSet:
CCObject CCCopying

Public Member Functions

 CCSet (void)
 ctor ()
 CCSet (const CCSet &rSetObject)
 CCSet ( var rSetObject)
virtual ~CCSet (void)
CCSetcopy ()
 Return a copy of the CCSet, it will copy all the elements. More...
 
var copy ()
 Return a copy of the CCSet, it will copy all the elements. More...
 
local copy ()
 Return a copy of the CCSet, it will copy all the elements. More...
 
CCSetmutableCopy ()
 It is the same as copy(). More...
 
var mutableCopy ()
 It is the same as copy(). More...
 
int count ()
 Return the number of elements the CCSet contains. More...
 
var 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...
 
var addObject ( var pObject)
 Add a element into CCSet, it will retain the element. More...
 
local addObject ( local 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...
 
var removeObject ( var 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...
 
var containsObject ( var pObject)
 Check if CCSet contains a element equals pObject. More...
 
local containsObject ( local 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...
 
CCObjectanyObject ()
 Return the first element if it contains elements, or null if it doesn't contain any element. More...
 
virtual void acceptVisitor (CCDataVisitor &visitor)
- Public Member Functions inherited from CCObject
 CCObject (void)
virtual ~CCObject (void)
void release (void)
void retain (void)
CCObjectautorelease (void)
CCObjectcopy (void)
bool isSingleReference (void) const
unsigned int retainCount (void) const
virtual bool isEqual (const CCObject *pObject)
virtual void update (float dt)
- Public Member Functions inherited from CCCopying
virtual CCObjectcopyWithZone (CCZone *pZone)

Static Public Member Functions

static CCSetcreate ()
 Create and return a new empty set. More...
 
var create ()
 Create and return a new empty set. More...
 

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

Constructor & Destructor Documentation

CCSet ( void  )
var ctor (   )
CCSet ( const CCSet rSetObject)
var CCSet ( var  rSetObject)
virtual ~CCSet ( void  )
virtual

Member Function Documentation

virtual void acceptVisitor ( CCDataVisitor visitor)
virtual

Reimplemented from CCObject.

void addObject ( CCObject pObject)

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

var addObject ( var  pObject)

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

local addObject ( local  pObject)

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

CCObject* anyObject ( )

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

var anyObject ( )

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

local anyObject ( )

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

CCSetIterator begin ( )

Return the iterator that points to the first element.

bool containsObject ( CCObject pObject)

Check if CCSet contains a element equals pObject.

var containsObject ( var  pObject)

Check if CCSet contains a element equals pObject.

local containsObject ( local  pObject)

Check if CCSet contains a element equals pObject.

CCSet* copy ( )

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

var copy ( )

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

local copy ( )

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

int count ( )

Return the number of elements the CCSet contains.

var count ( )

Return the number of elements the CCSet contains.

local count ( )

Return the number of elements the CCSet contains.

static CCSet* create ( )
static

Create and return a new empty set.

var create ( )
static

Create and return a new empty set.

CCSetIterator end ( )

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

CCSet* mutableCopy ( )

It is the same as copy().

var mutableCopy ( )

It is the same as copy().

void removeAllObjects ( )

Remove all elements of the set.

var removeAllObjects ( )

Remove all elements of the set.

local removeAllObjects ( )

Remove all elements of the set.

void removeObject ( CCObject pObject)

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

var removeObject ( var  pObject)

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

local removeObject ( local  pObject)

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


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