MrSID Decode SDK for Raster Reference Manual  9.5.5.5244
RC< TYPE > Class Template Reference

RC<> is a wrapper class around LTIReferenceCountedObject that gives the wrapped object block scoping. More...

#include <lti_referenceCountedObject.h>

Public Member Functions

 ~RC (void)
 releases the object when RC<> goes out of scope More...
 
 RC (void)
 create an object on the heap More...
 
 RC (TYPE *object)
 manage an existing object More...
 
RC & operator= (TYPE *object)
 
 RC (const RC &object)
 
RC & operator= (const RC &object)
 
TYPE * operator-> (void)
 make the wrapper look like a pointer to TYPE More...
 
const TYPE * operator-> (void) const
 
TYPE & operator* (void)
 make the wrapper look like a pointer to TYPE More...
 
const TYPE & operator* (void) const
 
 operator TYPE *& (void)
 make the wrapper look like a pointer to TYPE More...
 
 operator const TYPE *& (void) const
 

Detailed Description

template<typename TYPE>
class RC< TYPE >

RC<TYPE> tries to look like a TYPE *.

Definition at line 95 of file lti_referenceCountedObject.h.

Constructor & Destructor Documentation

◆ ~RC()

template<typename TYPE >
RC< TYPE >::~RC ( void  )
inline

Definition at line 99 of file lti_referenceCountedObject.h.

References LTI_RELEASE().

◆ RC() [1/3]

template<typename TYPE >
RC< TYPE >::RC ( void  )
inline

Note: caller should test if it is nullptr before using it.

Definition at line 106 of file lti_referenceCountedObject.h.

◆ RC() [2/3]

template<typename TYPE >
RC< TYPE >::RC ( TYPE *  object)
inline

Note: use RC<TYPE> object(nullptr) to get an empty wrapper

Definition at line 113 of file lti_referenceCountedObject.h.

◆ RC() [3/3]

template<typename TYPE >
RC< TYPE >::RC ( const RC< TYPE > &  object)
inline

Definition at line 123 of file lti_referenceCountedObject.h.

Member Function Documentation

◆ operator const TYPE *&()

template<typename TYPE >
RC< TYPE >::operator const TYPE *& ( void  ) const
inline

Definition at line 142 of file lti_referenceCountedObject.h.

◆ operator TYPE *&()

template<typename TYPE >
RC< TYPE >::operator TYPE *& ( void  )
inline

Definition at line 141 of file lti_referenceCountedObject.h.

◆ operator*() [1/2]

template<typename TYPE >
TYPE& RC< TYPE >::operator* ( void  )
inline

Definition at line 137 of file lti_referenceCountedObject.h.

◆ operator*() [2/2]

template<typename TYPE >
const TYPE& RC< TYPE >::operator* ( void  ) const
inline

Definition at line 138 of file lti_referenceCountedObject.h.

◆ operator->() [1/2]

template<typename TYPE >
TYPE* RC< TYPE >::operator-> ( void  )
inline

Definition at line 134 of file lti_referenceCountedObject.h.

◆ operator->() [2/2]

template<typename TYPE >
const TYPE* RC< TYPE >::operator-> ( void  ) const
inline

Definition at line 135 of file lti_referenceCountedObject.h.

◆ operator=() [1/2]

template<typename TYPE >
RC& RC< TYPE >::operator= ( const RC< TYPE > &  object)
inline

Definition at line 124 of file lti_referenceCountedObject.h.

References LTI_RELEASE(), and LTI_RETAIN().

◆ operator=() [2/2]

template<typename TYPE >
RC& RC< TYPE >::operator= ( TYPE *  object)
inline

Definition at line 114 of file lti_referenceCountedObject.h.

References LTI_RELEASE(), and LTI_RETAIN().


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

Extensis