|
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members
EkSmartPtr Class Template ReferenceEkSmartPtr - 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] |
|
template<class obj> |
EkSmartPtr< obj >::EkSmartPtr |
( |
const EkSmartPtr< obj > & |
nSP |
) |
[inline] |
|
template<class obj> |
EkSmartPtr< obj >::EkSmartPtr |
( |
obj * |
objPtr |
) |
[inline] |
|
Member Function Documentation
template<class obj> |
obj & EkSmartPtr< obj >::operator * |
( |
void |
|
) |
const [inline] |
|
template<class obj> |
obj * EkSmartPtr< obj >::operator-> |
( |
void |
|
) |
const [inline] |
|
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] |
|
The documentation for this class was generated from the following file:
|