CCDictElement is used for traversing CCDictionary.
More...
#include <CCDictionary.h>
CCDictElement is used for traversing CCDictionary.
A CCDictElement is one element of CCDictionary, it contains two properties, key and object. Its key has two different type (integer and string).
- Note
- The key type is unique, all the elements in CCDictionary has the same key type(integer or string).
{
}
CCDictElement is used for traversing CCDictionary.
Definition: CCDictionary.h:64
CCObject * getObject() const
Get the object of this element.
Definition: CCDictionary.h:121
const char * getStrKey() const
Get the string key of this element.
Definition: CCDictionary.h:97
CCSprite is a 2d image ( http://en.wikipedia.org/wiki/Sprite_(computer_graphics) )
Definition: CCSprite.h:86
#define CCDICT_FOREACH(__dict__, __el__)
The macro for traversing dictionary.
Definition: CCDictionary.h:141
NA NA
◆ ~CCDictElement()
◆ getIntKey()
Get the integer key of this element.
- Note
- This method assumes you know the key type in the element. If the element's key type is string, invoking this method will cause an assert.
- Returns
- The integer key of this element.
◆ getObject()
Get the object of this element.
- Returns
- The object of this element.
◆ getStrKey()
const char * getStrKey |
( |
| ) |
const |
|
inline |
Get the string key of this element.
- Note
- This method assumes you know the key type in the element. If the element's key type is integer, invoking this method will cause an assert.
- Returns
- The string key of this element.
◆ CCDictionary
◆ hh
The documentation for this class was generated from the following file:
- /home/runner/work/cocos-headers/cocos-headers/cocos2dx/cocoa/CCDictionary.h