Synergy Color Management Component - SDK -  2018.0.80
SYNCOLOR::GPUAdaptorPtr Class Reference

GPU Adaptor smart pointer. More...

Public Member Functions

 GPUAdaptorPtr ()
 Empty constructor. More...
 
 GPUAdaptorPtr (GPUAdaptor *pAdaptor)
 Initialization Constructor. More...
 
 ~GPUAdaptorPtr ()
 Destructor. More...
 
const GPUAdaptoroperator-> () const
 Constant dereferencing operator. More...
 
GPUAdaptoroperator-> ()
 Dereferencing operator. More...
 
const GPUAdaptorget () const
 Get the constant instance pointer. More...
 
GPUAdaptorget ()
 Get the instance pointer. More...
 
 GPUAdaptorPtr (const GPUAdaptorPtr &rhs)
 Copy constructor. More...
 
GPUAdaptorPtroperator= (const GPUAdaptorPtr &rhs)
 Equality operator. More...
 
GPUAdaptorPtroperator= (GPUAdaptor *rhs)
 Equality operator. More...
 

Private Attributes

void * _pImpl
 Opaque smart pointer data. More...
 

Detailed Description

GPU Adaptor smart pointer.

Class that manages sharing of GPU adaptor instances. Implements a shared pointer where only the last instance holding a specific GPUAdaptor instance will delete it.

Constructor & Destructor Documentation

SYNCOLOR::GPUAdaptorPtr::GPUAdaptorPtr ( )

Empty constructor.

SYNCOLOR::GPUAdaptorPtr::GPUAdaptorPtr ( GPUAdaptor pAdaptor)
explicit

Initialization Constructor.

Parameters
pAdaptorGPUAdaptor pointer to manage.
SYNCOLOR::GPUAdaptorPtr::~GPUAdaptorPtr ( )

Destructor.

If no other GPUAdaptorPtr shares the underlying pointer, the GPUAdaptor is deleted.

SYNCOLOR::GPUAdaptorPtr::GPUAdaptorPtr ( const GPUAdaptorPtr rhs)

Copy constructor.

The resulting GPUAdaptorPtr shares the instance pointer with the GPUAdaptorPtr passed as argument.

Parameters
rhsGPUAdaptorPtr containing the pointer to share.

Member Function Documentation

const GPUAdaptor* SYNCOLOR::GPUAdaptorPtr::operator-> ( ) const

Constant dereferencing operator.

Returns
Pointer to the underlying non-modifiable GPUAdaptor instance.
GPUAdaptor* SYNCOLOR::GPUAdaptorPtr::operator-> ( )

Dereferencing operator.

Returns
Pointer to the underlying GPUAdaptor instance.
const GPUAdaptor* SYNCOLOR::GPUAdaptorPtr::get ( ) const

Get the constant instance pointer.

Returns
Pointer to the underlying non-modifiable GPUAdaptor instance.
GPUAdaptor* SYNCOLOR::GPUAdaptorPtr::get ( )

Get the instance pointer.

Returns
Pointer to the underlying GPUAdaptor instance.
GPUAdaptorPtr& SYNCOLOR::GPUAdaptorPtr::operator= ( const GPUAdaptorPtr rhs)

Equality operator.

The resulting GPUAdaptorPtr shares the instance pointer with the GPUAdaptorPtr passed as argument.

Parameters
rhsConstant GPUAdaptorPtr to share.
Returns
Reference to the current instance.
GPUAdaptorPtr& SYNCOLOR::GPUAdaptorPtr::operator= ( GPUAdaptor rhs)

Equality operator.

The resulting GPUAdaptorPtr shares the instance pointer with the GPUAdaptorPtr passed as argument.

Parameters
rhsGPUAdaptorPtr to share.
Returns
Refernce to the current instance.

Member Data Documentation

void* SYNCOLOR::GPUAdaptorPtr::_pImpl
private

Opaque smart pointer data.