#include <Ptr.hpp>
List of all members.
Detailed Description
template<class T>
class zeus::TPtr< T >
The auto pointer class helps to manage objects from heap classes. Normally its used if a heap class is created locally. If there are exceptions we will get memory leaks. Therfore we use the auto pointer to manage the objects inside a scope. Leaving the scope will also release the memory allocated with new.
Constructor & Destructor Documentation
Creates a pointer wrapper
Creates a pointer wrapper
- Parameters:
-
Creates a pointer wrapper
- Parameters:
-
Creates a pointer wrapper out of a n other pointer wrapper. This copy constructor is protected.
- Parameters:
-
| rWrapper | : pointer wrapper |
Member Function Documentation
template<class T>
| void zeus::TPtr< T >::assign |
( |
const T * |
pInterface ) |
[inline] |
assigns a new pointer to the pointer wrapper.
template<class T>
| void zeus::TPtr< T >::assignWrapper |
( |
const TPtr< T > & |
rWrapper ) |
[inline] |
assigns a new pointer to the pointer wrapper.
template<class T>
| bool zeus::TPtr< T >::equals |
( |
const T * |
pPtr ) |
const [inline] |
Checks if two pointers are equal
template<class T>
| const T* zeus::TPtr< T >::getConstPointer |
( |
) |
const [inline] |
returns the the const_pointer
template<class T>
| bool zeus::TPtr< T >::operator!= |
( |
const TPtr< T > & |
rWrapper ) |
const [inline] |
Equals operator
- Parameters:
-
| rWrapper | : Pointer wrapper |
template<class T>
| bool zeus::TPtr< T >::operator!= |
( |
const T * |
pPtr ) |
const [inline] |
Equals operator
- Parameters:
-
template<class T>
| bool zeus::TPtr< T >::operator!= |
( |
const T & |
rPtr ) |
const [inline] |
Equals operator
- Parameters:
-
Returns the dereferenced pointer of an interface
- Returns:
- pointer to interface
Operator is used to return the interface pointer and to access to all methods of this interface
- Returns:
- pointer to interface
template<class T>
| const T* zeus::TPtr< T >::operator-> |
( |
) |
const [inline] |
Operator is used to return the interface pointer and to access to all methods of this interface
- Returns:
- pointer to interface
Assign operator
- Parameters:
-
Assign operator
- Parameters:
-
Assign operator
- Parameters:
-
| rWrapper | : pointer wrapper |
template<class T>
| bool zeus::TPtr< T >::operator== |
( |
const T & |
rPtr ) |
const [inline] |
Equals operator
- Parameters:
-
template<class T>
| bool zeus::TPtr< T >::operator== |
( |
const TPtr< T > & |
rWrapper ) |
const [inline] |
Equals operator
- Parameters:
-
| rWrapper | : Pointer wrapper |
template<class T>
| bool zeus::TPtr< T >::operator== |
( |
const T * |
pPtr ) |
const [inline] |
Equals operator
- Parameters:
-
Removes the pointer from the wrapper
Member Data Documentation
The documentation for this class was generated from the following file: