cocos2d-x  3.0alpha1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Set Class Reference

#include <CCSet.h>

Inheritance diagram for Set:
Object

Public Member Functions

 Set (void)
 ctor ()
 Set ()
 Set (const Set &rSetObject)
virtual ~Set (void)
Setcopy ()
 Return a copy of the Set, it will copy all the elements. More...
 
var copy ()
 Return a copy of the Set, it will copy all the elements. More...
 
local copy ()
 Return a copy of the Set, it will copy all the elements. More...
 
SetmutableCopy ()
 It is the same as copy(). More...
 
var mutableCopy ()
 It is the same as copy(). More...
 
local mutableCopy ()
 It is the same as copy(). More...
 
int count ()
 Return the number of elements the Set contains. More...
 
var count ()
 Return the number of elements the Set contains. More...
 
local count ()
 Return the number of elements the Set contains. More...
 
void addObject (Object *pObject)
 Add a element into Set, it will retain the element. More...
 
var addObject ( var pObject)
 Add a element into Set, it will retain the element. More...
 
local addObject ( local pObject)
 Add a element into Set, it will retain the element. More...
 
void removeObject (Object *pObject)
 Remove the given element, nothing todo if no element equals pObject. More...
 
void removeAllObjects ()
 Remove all elements of the set. More...
 
var removeAllObjects ()
 Remove all elements of the set. More...
 
bool containsObject (Object *pObject)
 Check if Set contains a element equals pObject. More...
 
SetIterator begin ()
 Return the iterator that points to the first element. More...
 
SetIterator end ()
 Return the iterator that points to the position after the last element. More...
 
ObjectanyObject ()
 Return the first element if it contains elements, or null if it doesn't contain any element. More...
 
local anyObject ()
 Return the first element if it contains elements, or null if it doesn't contain any element. More...
 
virtual void acceptVisitor (DataVisitor &visitor)
- Public Member Functions inherited from Object
 Object ()
 Constructor. More...
 
virtual ~Object ()
void release ()
 Release the ownership immediately. More...
 
void retain ()
 Retains the ownership. More...
 
Objectautorelease ()
 Release the ownership sometime soon automatically. More...
 
bool isSingleReference () const
 Returns a boolean value that indicates whether there is only one reference to the object. More...
 
unsigned int retainCount () const
 Returns the object's current reference count. More...
 
virtual bool isEqual (const Object *object)
 Returns a boolean value that indicates whether this object and a given object are equal. More...
 
virtual void update (float dt)

Static Public Member Functions

static Setcreate ()
 Create and return a new empty set. More...
 
local create ()
 Create and return a new empty set. More...
 

Additional Inherited Members

- Public Attributes inherited from Object
unsigned int _ID
 object id, ScriptSupport need public _ID More...
 
int _luaID
 Lua reference id. More...
 
- Protected Attributes inherited from Object
unsigned int _reference
 count of references More...
 
unsigned int _autoReleaseCount
 count of autorelease More...
 

Constructor & Destructor Documentation

Set ( void  )
var ctor (   )
local Set (   )
Set ( const Set rSetObject)
var Set ( var  rSetObject)
local Set ( local  rSetObject)
virtual ~Set ( void  )
virtual

Member Function Documentation

virtual void acceptVisitor ( DataVisitor visitor)
virtual

Reimplemented from Object.

void addObject ( Object pObject)

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

var addObject ( var  pObject)

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

local addObject ( local  pObject)

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

Object* 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.

SetIterator begin ( )

Return the iterator that points to the first element.

bool containsObject ( Object pObject)

Check if Set contains a element equals pObject.

var containsObject ( var  pObject)

Check if Set contains a element equals pObject.

local containsObject ( local  pObject)

Check if Set contains a element equals pObject.

Set* copy ( )

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

var copy ( )

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

local copy ( )

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

int count ( )

Return the number of elements the Set contains.

var count ( )

Return the number of elements the Set contains.

local count ( )

Return the number of elements the Set contains.

static Set* create ( )
static

Create and return a new empty set.

var create ( )
static

Create and return a new empty set.

local create ( )
static

Create and return a new empty set.

SetIterator end ( )

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

Set* mutableCopy ( )

It is the same as copy().

var mutableCopy ( )

It is the same as copy().

local 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 ( Object 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: