SourceForge.net Logo
Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

EkCompSmartPtr Class Template Reference

EkCompSmartPtr - Templated, use count based Pointer class. More...

#include <EkCompSmartPtr.h>

Inheritance diagram for EkCompSmartPtr:

[legend]
Collaboration diagram for EkCompSmartPtr:
[legend]
List of all members.

Public Methods

 EkCompSmartPtr (void)
 Default constructor. More...

 EkCompSmartPtr (const EkCompSmartPtr< obj > &nSP)
 Copy constructor. More...

 EkCompSmartPtr (obj *objPtr)
 copy constructor. More...

EkCompSmartPtr< obj > & operator= (const EkCompSmartPtr< obj > &nSP)
 Point this object at a new spot. Calls deleteRef for current obj, and addRef for new Object... Assuming they aren't null. More...

EkCompSmartPtr< obj > & operator= (obj *objPtr)
 Another assignment operator. More...

obj * operator-> (void) const
 Member selection through pointer. More...

obj & operator * (void) const
 Dereference operator. More...

obj * ptr (void) const
 Get the raw pointer value. More...


Detailed Description

template<class obj>
class EkCompSmartPtr< obj >

EkCompSmartPtr - Templated, use count based Pointer class.

This is a very simple subclass of EkConstCompSmartPtr that returns non-const pointers, and references. It is a subclass so it can be automatically coerced into a EkConstCompSmartPtr when needed by the compiler.

See also:
EkConstCompSmartPtr for a full description


Constructor & Destructor Documentation

template<class obj>
EkCompSmartPtr< obj >::EkCompSmartPtr void    [inline]
 

Default constructor.

template<class obj>
EkCompSmartPtr< obj >::EkCompSmartPtr const EkCompSmartPtr< obj > &    nSP [inline]
 

Copy constructor.

template<class obj>
EkCompSmartPtr< obj >::EkCompSmartPtr obj *    objPtr [inline]
 

copy constructor.


Member Function Documentation

template<class obj>
obj & EkCompSmartPtr< obj >::operator * void    const [inline]
 

Dereference operator.

Reimplemented from EkConstCompSmartPtr.

template<class obj>
obj * EkCompSmartPtr< obj >::operator-> void    const [inline]
 

Member selection through pointer.

Reimplemented from EkConstCompSmartPtr.

template<class obj>
EkCompSmartPtr< obj > & EkCompSmartPtr< obj >::operator= obj *    objPtr [inline]
 

Another assignment operator.

template<class obj>
EkCompSmartPtr< obj > & EkCompSmartPtr< obj >::operator= const EkCompSmartPtr< obj > &    nSP [inline]
 

Point this object at a new spot. Calls deleteRef for current obj, and addRef for new Object... Assuming they aren't null.

template<class obj>
obj * EkCompSmartPtr< obj >::ptr void    const [inline]
 

Get the raw pointer value.

Reimplemented from EkConstCompSmartPtr.


The documentation for this class was generated from the following file:
Last Updated: March 12, 2003 (rlr)
Copyright © 2003 Eastman Kodak Company All Rights Reserved.