#include <CCObject.h>
Constructor.
The object's reference count is 1 after construction.
Constructor.
The object's reference count is 1 after construction.
Release the ownership sometime soon automatically.
This descrements the object's reference count at the end of current autorelease pool block.
If the reference count reaches 0 after the descrement, this object is destructed.
- Returns
- The object itself.
- See Also
- AutoreleasePool, retain, release
virtual bool isEqual |
( |
const Object * |
object) | |
|
|
virtual |
Returns a boolean value that indicates whether this object and a given object are equal.
- Parameters
-
object | The object to be compared to this object. |
- Returns
- True if this object and
object
are equal, otherwise false.
Reimplemented in String.
bool isSingleReference |
( |
) | |
const |
Returns a boolean value that indicates whether there is only one reference to the object.
That is, whether the reference count is 1.
- Returns
- Whether the object's reference count is 1.
local isSingleReference |
( |
) | |
|
Returns a boolean value that indicates whether there is only one reference to the object.
That is, whether the reference count is 1.
- Returns
- Whether the object's reference count is 1.
Release the ownership immediately.
This decrements the object's reference count.
If the reference count reaches 0 after the descrement, this object is destructed.
- See Also
- retain, autorelease
Release the ownership immediately.
This decrements the object's reference count.
If the reference count reaches 0 after the descrement, this object is destructed.
- See Also
- retain, autorelease
Retains the ownership.
This increases the object's reference count.
- See Also
- release, autorelease
Retains the ownership.
This increases the object's reference count.
- See Also
- release, autorelease
unsigned int retainCount |
( |
) | |
const |
Returns the object's current reference count.
- Returns
- The object's reference count.
Returns the object's current reference count.
- Returns
- The object's reference count.
virtual void update |
( |
float |
dt) | |
|
|
inlinevirtual |
Reimplemented in Node, TargetedAction, Animate, ReverseTime, DelayTime, TintBy, TintTo, FadeTo, FadeOut, FadeIn, Blink, ScaleTo, BezierBy, JumpBy, EaseBackInOut, EaseBackOut, SkewTo, EaseBackIn, EaseBounceInOut, ParticleSystem, EaseBounceOut, MoveBy, EaseBounceIn, RotateBy, EaseElasticInOut, EaseElasticOut, RotateTo, SplitCols, CallFunc, EaseElasticIn, SplitRows, Spawn, Twirl, CCBEaseInstant, JumpTiles3D, CCBRotateYTo, EaseSineInOut, DeccelAmplitude, Waves, EaseSineOut, CCBRotateXTo, WavesTiles3D, Place, EaseSineIn, AccelAmplitude, Liquid, CCBRotateTo, TurnOffTiles, EaseExponentialInOut, FlipY, CardinalSplineTo, CCBSoundEffect, Shaky3D, EaseExponentialOut, AccelDeccelAmplitude, Repeat, CCBSetSpriteFrame, UIScrollView, EaseExponentialIn, FlipX, Armature, Ripple3D, Scheduler, ArmatureAnimation, EaseInOut, UIListView, UIPageView, RemoveSelf, ActionManager, EaseOut, OrbitCamera, Bone, Sequence, FadeOutTRTiles, UITextField, Lens3D, ProcessBase, UIDragPanel, EaseIn, ToggleVisibility, ShuffleTiles, MotionStreak, Action, FlipY3D, Hide, Timer, CCSkeleton, FlipX3D, ProgressFromTo, ControlStepper, ActionTween, Show, ShatteredTiles3D, ActionEase, CCSkeletonAnimation, Waves3D, ActionInstant, Component, ProgressTo, ComController, PageTurn3D, ShakyTiles3D, and ScheduleHandlerDelegate.
unsigned int _autoReleaseCount |
|
protected |
object id, ScriptSupport need public _ID
The documentation for this class was generated from the following file:
- /Users/cocos2d/MyWork/cocos2d-x-develop/cocos2dx/cocoa/CCObject.h