ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
CCShareableHolder< T > Class Template Reference

#include <wrappers.h>

Public Member Functions

 CCShareableHolder ()=default
 
 CCShareableHolder (T *obj)
 
T * get ()
 
const T * get () const
 
 ~CCShareableHolder ()
 

Detailed Description

template<class T>
class CCShareableHolder< T >

A holder type for any type that inherits CCShareable

CCShareable is CC's ref counted mechanism. It works by inheritance + manual call to link/release.

Definition at line 30 of file wrappers.h.

Constructor & Destructor Documentation

◆ CCShareableHolder() [1/2]

template<class T >
CCShareableHolder< T >::CCShareableHolder ( )
default

◆ CCShareableHolder() [2/2]

template<class T >
CCShareableHolder< T >::CCShareableHolder ( T *  obj)
inlineexplicit

Definition at line 37 of file wrappers.h.

◆ ~CCShareableHolder()

template<class T >
CCShareableHolder< T >::~CCShareableHolder ( )
inline

Definition at line 55 of file wrappers.h.

Member Function Documentation

◆ get() [1/2]

template<class T >
T* CCShareableHolder< T >::get ( )
inline

Definition at line 45 of file wrappers.h.

◆ get() [2/2]

template<class T >
const T* CCShareableHolder< T >::get ( ) const
inline

Definition at line 50 of file wrappers.h.


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