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

This class is a smart pointer on a rule. More...

Public Member Functions

 RulePtr ()
 Constructor. More...
 
 RulePtr (Rule *r)
 Custom Constructor. More...
 
 RulePtr (const RulePtr &r)
 Copy Constructor. More...
 
 ~RulePtr ()
 Destructor. More...
 
RulePtroperator= (const RulePtr &r)
 Operator =. More...
 
Ruleoperator-> () const
 Operator -> More...
 
 operator bool () const
 bool operator More...
 
Ruleget () const
 Obtains a pointer to the Rule from the RulePtr. More...
 

Private Attributes

void * _data
 Pointer to _data memory location (hiding the implementation) More...
 

Detailed Description

This class is a smart pointer on a rule.

Constructor & Destructor Documentation

SYNCOLOR::RulePtr::RulePtr ( )

Constructor.

SYNCOLOR::RulePtr::RulePtr ( Rule r)
explicit

Custom Constructor.

Parameters
rThe pointer to a file rule to manage
SYNCOLOR::RulePtr::RulePtr ( const RulePtr r)

Copy Constructor.

Parameters
rreference to a RulePtr to Manage
SYNCOLOR::RulePtr::~RulePtr ( )

Destructor.

Member Function Documentation

RulePtr& SYNCOLOR::RulePtr::operator= ( const RulePtr r)

Operator =.

Parameters
rThe reference of the Rule that is on the RHS of the "=" operation
Returns
a reference to the new RulePtr.
Rule* SYNCOLOR::RulePtr::operator-> ( ) const

Operator ->

Returns
a pointer to the Rule
SYNCOLOR::RulePtr::operator bool ( ) const

bool operator

Returns
a bool, true if the Rule is defined, false otherwise
Rule* SYNCOLOR::RulePtr::get ( ) const

Obtains a pointer to the Rule from the RulePtr.

Returns
a pointer to Rule. This Rule* is not to be deleted.

Member Data Documentation

void* SYNCOLOR::RulePtr::_data
private

Pointer to _data memory location (hiding the implementation)