2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module Ref
|
2014-07-02 10:15:26 +08:00
|
|
|
-- @parent_module cc
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Releases the ownership immediately.<br>
|
|
|
|
-- This decrements the Ref's reference count.<br>
|
|
|
|
-- If the reference count reaches 0 after the descrement, this Ref is<br>
|
|
|
|
-- destructed.<br>
|
|
|
|
-- see retain, autorelease<br>
|
|
|
|
-- js NA
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Ref] release
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Retains the ownership.<br>
|
|
|
|
-- This increases the Ref's reference count.<br>
|
|
|
|
-- see release, autorelease<br>
|
|
|
|
-- js NA
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Ref] retain
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Returns the Ref's current reference count.<br>
|
|
|
|
-- returns The Ref's reference count.<br>
|
|
|
|
-- js NA
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Ref] getReferenceCount
|
|
|
|
-- @param self
|
|
|
|
-- @return unsigned int#unsigned int ret (return value: unsigned int)
|
|
|
|
|
|
|
|
return nil
|