|
Synergy Color Management Component - SDK -
2018.0.80
|
Generic smart pointer. More...
Public Member Functions | |
| SharedPtr () | |
| Empty constructor producing a null pointer. More... | |
| SharedPtr (T *t) | |
| Initialization constructor. More... | |
| SharedPtr (const SharedPtr &t) | |
| Copy Constructor. More... | |
| ~SharedPtr () | |
| SharedPtr & | operator= (const SharedPtr &t) |
| Assignation operator. More... | |
| T & | operator* () const |
| Dereferencing operator. More... | |
| T * | operator-> () const |
| Dereferencing operator. More... | |
| bool | operator< (const SharedPtr &r) const |
| Basic comparison operators. More... | |
| bool | operator== (const SharedPtr &r) const |
| bool | operator!= (const SharedPtr &r) const |
| operator bool () const | |
| Boolean operator. More... | |
| long | getUseCount () const |
| Count of references to the underlying instance. More... | |
| T * | get () const |
| Get the instance pointer. More... | |
| void | reset () |
| Release the underlying instance. More... | |
| void | reset (T *t) |
| Reassign to a different instance. More... | |
Private Attributes | |
| void * | _data |
| Opaque shared pointer data. More... | |
Generic smart pointer.
Class that manages sharing of class instances. Implements a shared pointer where only the last instance holding a specific instance will delete it.
| SYNCOLOR::SharedPtr< T >::SharedPtr | ( | ) |
Empty constructor producing a null pointer.
|
explicit |
Initialization constructor.
| t | instance to manage. |
| SYNCOLOR::SharedPtr< T >::SharedPtr | ( | const SharedPtr< T > & | t | ) |
| SYNCOLOR::SharedPtr< T >::~SharedPtr | ( | ) |
Destructor.
| SharedPtr& SYNCOLOR::SharedPtr< T >::operator= | ( | const SharedPtr< T > & | t | ) |
| T& SYNCOLOR::SharedPtr< T >::operator* | ( | ) | const |
Dereferencing operator.
| T* SYNCOLOR::SharedPtr< T >::operator-> | ( | ) | const |
Dereferencing operator.
| bool SYNCOLOR::SharedPtr< T >::operator< | ( | const SharedPtr< T > & | r | ) | const |
Basic comparison operators.
| SYNCOLOR::SharedPtr< T >::operator bool | ( | ) | const |
Boolean operator.
| long SYNCOLOR::SharedPtr< T >::getUseCount | ( | ) | const |
Count of references to the underlying instance.
| T* SYNCOLOR::SharedPtr< T >::get | ( | ) | const |
Get the instance pointer.
| void SYNCOLOR::SharedPtr< T >::reset | ( | ) |
Release the underlying instance.
The underlyingTemplatem instance is deleted if no other SharedPtr has the same pointer.
| void SYNCOLOR::SharedPtr< T >::reset | ( | T * | t | ) |
Reassign to a different instance.
The initial underlying instance is deleted if no other SharedPtr has the same pointer.
| t | Pointer to the instance to reassign to. |
|
private |
Opaque shared pointer data.