CCCoreLib 31 May 2022
CloudCompare Core algorithms
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CCShareable Class Reference
Inheritance diagram for CCShareable:
Inheritance graph
[legend]

Public Member Functions

 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...
 

Protected Member Functions

virtual ~CCShareable ()
 Destructor. More...
 

Protected Attributes

unsigned m_linkCount
 Links counter.
 

Constructor & Destructor Documentation

◆ ~CCShareable()

CCShareable::~CCShareable ( )
protectedvirtual

Destructor.

private to avoid deletion with 'delete' operator

Member Function Documentation

◆ 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: