ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
CCShareable Class Reference

#include <CVShareable.h>

Inheritance diagram for CCShareable:

Public Member Functions

 CCShareable ()
 Default constructor. More...
 
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. More...
 

Detailed Description

Definition at line 22 of file CVShareable.h.

Constructor & Destructor Documentation

◆ CCShareable()

CCShareable::CCShareable ( )

Default constructor.

Definition at line 27 of file CVShareable.cpp.

◆ ~CCShareable()

CCShareable::~CCShareable ( )
protectedvirtual

Destructor.

private to avoid deletion with 'delete' operator

Definition at line 42 of file CVShareable.cpp.

References std::swap().

Member Function Documentation

◆ getLinkCount()

virtual unsigned CCShareable::getLinkCount ( ) const
inlinevirtual

Returns the current link count.

Returns
current link count

Definition at line 40 of file CVShareable.h.

Referenced by define_CCShareable(), ccPropertiesTreeDelegate::fillWithShareable(), and cloudViewer::utility::pybind_scalarfield().

◆ link()

◆ release()

Member Data Documentation

◆ m_linkCount

unsigned CCShareable::m_linkCount
protected

Links counter.

Definition at line 54 of file CVShareable.h.

Referenced by link(), and release().


The documentation for this class was generated from the following files: