arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

TFImageSP Class Reference

#include <TFImage.h>

Inheritance diagram for TFImageSP:

gutz::SmartPtr< TFImage > gutz::Counted List of all members.

Detailed Description

Speciallized TFImage smart ptr for auto cast to bases.

Definition at line 66 of file TFImage.h.

Public Types

typedef gutz::SmartPtr< TFImagebtype
typedef TFImage type

Public Member Functions

 TFImageSP ()
 TFImageSP (TFImage *im)
 TFImageSP (const TFImageSP &im)
virtual ~TFImageSP ()
TFImageSPoperator= (const TFImageSP &im)
 operator NrroSP ()
 auto conversion to NrroSP

 operator Nrro * ()
 auto conversion to Nrro*

 operator NrroImageSP ()
 auto conversion to NrroImageSP

 operator NrroImage * ()
 auto conversion to NrroImage*

TFImagegetPtr ()
TFImage *const getPtr () const
TFImageoperator-> ()
TFImage *const operator-> () const
TFImageoperator * ()
TFImageoperator * () const
 operator T *const () const
SmartPtr< CT > cast () const
 
         mySubClassSP  = myBaseClassSP.down_cast<MySubClassType>();
You don't need this for an "up-cast" since this thing automatically casts itself to a pointer which will then be up-casted by the compiler.

bool operator! () const
bool isNull () const
 just for convienence.


Protected Member Functions

void assign (TFImage *const ref)
virtual void _incCount ()
 gutz::Counted interface, increment reference count by one.

virtual void _decCount ()
 gutz::Counted interface, decrement reference count by one.

virtual int _getCount () const
 gutz::Counted interface, get the current reference count.


Protected Attributes

TFImage_ref
 The only data we have is this pointer, so we have the same memory foot print of a regular pointer.


Friends

class SmartPtr
class SmartPtrRef


Member Typedef Documentation

typedef gutz::SmartPtr<TFImage> TFImageSP::btype
 

Definition at line 69 of file TFImage.h.

typedef TFImage gutz::SmartPtr< TFImage >::type [inherited]
 

Definition at line 183 of file smartptr.h.


Constructor & Destructor Documentation

TFImageSP::TFImageSP  )  [inline]
 

Definition at line 71 of file TFImage.h.

TFImageSP::TFImageSP TFImage im  )  [inline]
 

Definition at line 72 of file TFImage.h.

TFImageSP::TFImageSP const TFImageSP im  )  [inline]
 

Definition at line 73 of file TFImage.h.

virtual TFImageSP::~TFImageSP  )  [inline, virtual]
 

Definition at line 74 of file TFImage.h.


Member Function Documentation

virtual void gutz::Counted::_decCount  )  [inline, protected, virtual, inherited]
 

gutz::Counted interface, decrement reference count by one.

Not generaly used by subclasses, mostly for collaboration with gutz::SmartPtr. Sometimes you need to call this though, see the documentation for gutz::SmartPtr

Definition at line 54 of file smartptr.h.

Referenced by TFImage::clear(), NrroImage::fBlendOverRGBA(), and Nrro::updateMinMax().

virtual int gutz::Counted::_getCount  )  const [inline, protected, virtual, inherited]
 

gutz::Counted interface, get the current reference count.

Not generaly used by subclasses, mostly for collaboration with gutz::SmartPtr.

Definition at line 58 of file smartptr.h.

virtual void gutz::Counted::_incCount  )  [inline, protected, virtual, inherited]
 

gutz::Counted interface, increment reference count by one.

Not generaly used by subclasses, mostly for collaboration with gutz::SmartPtr. Sometimes you need to call this though, see the documentation for gutz::SmartPtr

Definition at line 48 of file smartptr.h.

Referenced by TFImage::clear(), NrroImage::fBlendOverRGBA(), and Nrro::updateMinMax().

void gutz::SmartPtr< TFImage >::assign TFImage *const  ref  )  [inline, protected, inherited]
 

inc ref if non-zero

save off old reference

assign _ref = ref

delete the old reference

just a dec most of the time...

but if we hold the last reference, nuke it

Definition at line 285 of file smartptr.h.

Referenced by operator=().

SmartPtr<CT> gutz::SmartPtr< TFImage >::cast  )  const [inline, inherited]
 

         mySubClassSP  = myBaseClassSP.down_cast<MySubClassType>();
You don't need this for an "up-cast" since this thing automatically casts itself to a pointer which will then be up-casted by the compiler.

Definition at line 249 of file smartptr.h.

TFImage * const gutz::SmartPtr< TFImage >::getPtr  )  const [inline, inherited]
 

Definition at line 194 of file smartptr.h.

TFImage * gutz::SmartPtr< TFImage >::getPtr  )  [inline, inherited]
 

Definition at line 193 of file smartptr.h.

Referenced by operator Nrro *(), operator NrroImage *(), operator NrroImageSP(), and operator NrroSP().

bool gutz::SmartPtr< TFImage >::isNull  )  const [inline, inherited]
 

just for convienence.

access via,

 mySp.isNull() 

Definition at line 276 of file smartptr.h.

TFImage & gutz::SmartPtr< TFImage >::operator *  )  const [inline, inherited]
 

Definition at line 218 of file smartptr.h.

TFImage & gutz::SmartPtr< TFImage >::operator *  )  [inline, inherited]
 

Definition at line 217 of file smartptr.h.

TFImageSP::operator Nrro *  )  [inline]
 

auto conversion to Nrro*

Definition at line 85 of file TFImage.h.

References gutz::SmartPtr< TFImage >::getPtr().

TFImageSP::operator NrroImage *  )  [inline]
 

auto conversion to NrroImage*

Definition at line 89 of file TFImage.h.

References gutz::SmartPtr< TFImage >::getPtr().

TFImageSP::operator NrroImageSP  )  [inline]
 

auto conversion to NrroImageSP

Definition at line 87 of file TFImage.h.

References gutz::SmartPtr< TFImage >::getPtr().

TFImageSP::operator NrroSP  )  [inline]
 

auto conversion to NrroSP

Definition at line 83 of file TFImage.h.

References gutz::SmartPtr< TFImage >::getPtr(), and NrroSP.

gutz::SmartPtr< TFImage >::operator TFImage *const  )  const [inline, inherited]
 

Definition at line 234 of file smartptr.h.

bool gutz::SmartPtr< TFImage >::operator!  )  const [inline, inherited]
 

Definition at line 261 of file smartptr.h.

TFImage * const gutz::SmartPtr< TFImage >::operator->  )  const [inline, inherited]
 

Definition at line 210 of file smartptr.h.

TFImage * gutz::SmartPtr< TFImage >::operator->  )  [inline, inherited]
 

Definition at line 209 of file smartptr.h.

TFImageSP& TFImageSP::operator= const TFImageSP im  )  [inline]
 

Definition at line 76 of file TFImage.h.

References gutz::SmartPtr< TFImage >::_ref, and gutz::SmartPtr< TFImage >::assign().


Friends And Related Function Documentation

friend class SmartPtr [friend, inherited]
 

Definition at line 40 of file smartptr.h.

Referenced by Nrro::NrroIter< T >::NrroIter().

friend class SmartPtrRef [friend, inherited]
 

Definition at line 41 of file smartptr.h.


Member Data Documentation

TFImage * gutz::SmartPtr< TFImage >::_ref [protected, inherited]
 

The only data we have is this pointer, so we have the same memory foot print of a regular pointer.

Definition at line 283 of file smartptr.h.

Referenced by operator=().


The documentation for this class was generated from the following file:
Send questions, comments, and bug reports to:
jmk