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

EkSmartPtr Class Template Reference

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

#include <EkSmartPtr.h>

Inheritance diagram for EkSmartPtr:

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

Public Methods

 EkSmartPtr (void)
 Default constructor. More...

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

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

EkSmartPtr< obj > & operator= (const EkSmartPtr< 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...

EkSmartPtr< 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 EkSmartPtr< obj >

EkSmartPtr - Templated, use count based Pointer class.

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

See also:
EkConstSmartPtr for a full description


Constructor & Destructor Documentation

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

Default constructor.

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

Copy constructor.

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

copy constructor.


Member Function Documentation

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

Dereference operator.

Reimplemented from EkConstSmartPtr.

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

Member selection through pointer.

Reimplemented from EkConstSmartPtr.

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

Another assignment operator.

template<class obj>
EkSmartPtr< obj > & EkSmartPtr< obj >::operator= const EkSmartPtr< 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 * EkSmartPtr< obj >::ptr void    const [inline]
 

Get the raw pointer value.

Reimplemented from EkConstSmartPtr.


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.