mockpp::AutoPointer< X > Class Template Reference

Implementation of an auto-pointer class. More...

List of all members.

Public Member Functions

 AutoPointer (X *p=0)
 Constructor.
 AutoPointer (const AutoPointer &a)
 Constructor.
AutoPointeroperator= (const AutoPointer &rhs)
 Constructor.
template<class Y >
AutoPointeroperator= (const AutoPointer< Y > &rhs)
 Constructor.
template<class Y >
 operator AutoPointer< Y > ()
 Converter.
 ~AutoPointer ()
 Destructor.
X & operator* () const
 Converter.
X * operator-> () const
 Converter.
X * get () const
 Converter.
X * release ()
 Releaser.
void reset (X *p=0)
 Releaser.

Detailed Description

template<class X>
class mockpp::AutoPointer< X >

Implementation of an auto-pointer class.

99% re-implemented from std::auto_ptr. The main difference is the missing "explicit" in the constructor which is needed for the use of my owner-change-idiom. Additionally the new class is slightly modified.

For a complete documentation of auto-pointers read your favorite C++ book.

Definition at line 51 of file AutoPointer.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines

Generated on Tue Jan 5 09:49:02 2010 for mockpp by  doxygen 1.6.1