Smartpointer class. More...
#include <InstantIO/SmartPtr.h>
Public Member Functions | |
| SmartPtr () | |
| Constructor. | |
| SmartPtr (const SmartPtr &other) | |
| Copy constructor. | |
| ~SmartPtr () | |
| Destructor. | |
| const SmartPtr< T > & | operator= (const SmartPtr< T > &other) |
| Copy operator. | |
| const T & | operator* () const |
| Dereferenciation operator. | |
| T & | operator* () |
| Dereferenciation operator. | |
| const T * | operator-> () const |
| Pointer operator. | |
| T * | operator-> () |
| Pointer operator. | |
| void | newObject () |
| Lets the pointer point to a new object. | |
Smartpointer class.
| InstantIO::SmartPtr< T >::SmartPtr | ( | ) | [inline] |
Constructor.
Creates a new SmartPtr object.
| InstantIO::SmartPtr< T >::SmartPtr | ( | const SmartPtr< T > & | other | ) | [inline] |
Copy constructor.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| InstantIO::SmartPtr< T >::~SmartPtr | ( | ) | [inline] |
Destructor.
Destroys a SmartPtr object.
| const SmartPtr<T>& InstantIO::SmartPtr< T >::operator= | ( | const SmartPtr< T > & | other | ) | [inline] |
Copy operator.
Copies the value from another smartpointer.
| other | The other smartpointer |
| const T& InstantIO::SmartPtr< T >::operator* | ( | ) | const [inline] |
Dereferenciation operator.
Returns the value the smartpointer points at.
| T& InstantIO::SmartPtr< T >::operator* | ( | ) | [inline] |
Dereferenciation operator.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| const T* InstantIO::SmartPtr< T >::operator-> | ( | ) | const [inline] |
Pointer operator.
Returns a pointer of the value the smartpointer points at.
| T* InstantIO::SmartPtr< T >::operator-> | ( | ) | [inline] |
Pointer operator.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| void InstantIO::SmartPtr< T >::newObject | ( | ) | [inline] |
Lets the pointer point to a new object.
Calling this methods lets the pointer point to a new object.
1.6.3