|
|
| CCShareable () |
| | Default constructor.
|
| |
| virtual void | link () |
| | Increase counter. More...
|
| |
| virtual void | release () |
| | Decrease counter and deletes object when 0. More...
|
| |
| virtual unsigned | getLinkCount () const |
| | Returns the current link count. More...
|
| |
|
|
unsigned | m_linkCount |
| | Links counter.
|
| |
◆ ~CCShareable()
| CCShareable::~CCShareable |
( |
| ) |
|
|
protectedvirtual |
Destructor.
private to avoid deletion with 'delete' operator
◆ getLinkCount()
| virtual unsigned CCShareable::getLinkCount |
( |
| ) |
const |
|
inlinevirtual |
Returns the current link count.
- Returns
- current link count
◆ link()
| void CCShareable::link |
( |
| ) |
|
|
virtual |
Increase counter.
Should be called when this object is 'attached' to another one.
◆ release()
| void CCShareable::release |
( |
| ) |
|
|
virtual |
Decrease counter and deletes object when 0.
Should be called when this object is 'detached'.
The documentation for this class was generated from the following files:
- CCShareable.h
- CCShareable.cpp