cocos2d-x
3.3
|
Classes | |
class | RefPtr< T > |
Wrapper class which maintains a strong reference to a cocos2dx cocos2d::Ref* type object. More... | |
Namespaces | |
cocos2d | |
Add deprecated global functions and variables here. | |
Macros | |
#define | CC_REF_PTR_SAFE_RETAIN(ptr) |
Utility/support macros. More... | |
#define | CC_REF_PTR_SAFE_RELEASE(ptr) |
#define | CC_REF_PTR_SAFE_RELEASE_NULL(ptr) |
Functions | |
template<class T , class U > | |
RefPtr< T > | static_pointer_cast (const RefPtr< U > &r) |
Cast between RefPtr types statically. More... | |
template<class T , class U > | |
RefPtr< T > | dynamic_pointer_cast (const RefPtr< U > &r) |
Cast between RefPtr types dynamically. More... | |
#define CC_REF_PTR_SAFE_RELEASE | ( | ptr | ) |
#define CC_REF_PTR_SAFE_RELEASE_NULL | ( | ptr | ) |
#define CC_REF_PTR_SAFE_RETAIN | ( | ptr | ) |
Utility/support macros.
Defined to enable RefPtr<T> to contain types like 'const T' because we do not regard retain()/release() as affecting mutability of state.