|
Synergy Color Management Component - SDK -
2018.0.80
|
Transform smart pointer.. More...
Public Member Functions | |
| TransformPtr () | |
| Empty constructor. More... | |
| TransformPtr (Transform *t) | |
| Initialization constructor. More... | |
| TransformPtr (const TransformPtr &t) | |
| Copy Constructor. More... | |
| ~TransformPtr () | |
| Destructor. More... | |
| TransformPtr & | operator= (const TransformPtr &tp) |
| Equality operator. More... | |
| Transform & | operator* () const |
| Dereferencing operator. More... | |
| Transform * | operator-> () const |
| Dereferencing operator. More... | |
| operator bool () const | |
| Boolean operator. More... | |
| long | getUseCount () const |
| Count of references to the underlying Transform. More... | |
| Transform * | get () const |
| Get the instance pointer. More... | |
| void | reset () |
| Release the underlying transform. More... | |
| void | reset (Transform *tp) |
| Reassign to a different Transform. More... | |
Private Attributes | |
| void * | _data |
| Opaque smart pointer data. More... | |
Transform smart pointer..
Class that manages sharing of SYNCOLOR::Transform instances. Implements a shared pointer where only the last instance holding a specific Transform instance will delete it.
| SYNCOLOR::TransformPtr::TransformPtr | ( | ) |
Empty constructor.
|
explicit |
Initialization constructor.
| t | Transform instance to manage. |
| SYNCOLOR::TransformPtr::TransformPtr | ( | const TransformPtr & | t | ) |
Copy Constructor.
The resulting TransformPtr shares the instance pointer with the TransformPtr passed as argument.
| t | TransformPtr containing the Transform pointer to share. |
| SYNCOLOR::TransformPtr::~TransformPtr | ( | ) |
Destructor.
If no other TransformPtr shares the underlying pointer, the Transform is deleted.
| TransformPtr& SYNCOLOR::TransformPtr::operator= | ( | const TransformPtr & | tp | ) |
Equality operator.
The resulting TransformPtr shares the instance pointer with the TransformPtr passed as argument.
| tp | Constant TransformPtr to share. |
| Transform& SYNCOLOR::TransformPtr::operator* | ( | ) | const |
Dereferencing operator.
| Transform* SYNCOLOR::TransformPtr::operator-> | ( | ) | const |
Dereferencing operator.
| SYNCOLOR::TransformPtr::operator bool | ( | ) | const |
Boolean operator.
| long SYNCOLOR::TransformPtr::getUseCount | ( | ) | const |
Count of references to the underlying Transform.
| Transform* SYNCOLOR::TransformPtr::get | ( | ) | const |
Get the instance pointer.
| void SYNCOLOR::TransformPtr::reset | ( | ) |
Release the underlying transform.
The underlying Transform instance is deleted if no other TransformPtr has the same Transform pointer.
| void SYNCOLOR::TransformPtr::reset | ( | Transform * | tp | ) |
Reassign to a different Transform.
The initial underlying Transform instance is deleted if no other TransformPtr has the same pointer.
| tp | Pointer to the Transform to reassign to. |
|
private |
Opaque smart pointer data.