Smart pointer template.
More...
#include <SmartPtr.h>
List of all members.
Detailed Description
template<class AType>
class PLCore::SmartPtr< AType >
Smart pointer template.
Constructor & Destructor Documentation
Constructor.
- Parameters:
-
[in] | pPtr | Direct pointer to initialize with, can be a null pointer |
Constructor.
- Parameters:
-
[in] | pPtr | Smart pointer to initialize with |
Member Function Documentation
Assign a pointer.
- Parameters:
-
[in] | pPtr | Direct pointer to assign, can be a null pointer |
- Returns:
- Reference to the smart pointer
Assign a smart pointer.
- Parameters:
-
[in] | cPtr | Smart pointer to assign |
- Returns:
- Reference to the smart pointer
Get a direct pointer to the object.
- Returns:
- Pointer to the object, can be a null pointer
Get a pointer to access the object.
- Returns:
- Pointer to the object, can be a null pointer
Cast to a pointer to the object.
- Returns:
- Pointer to the object, can be a null pointer
Check if the pointer is not a null pointer.
- Returns:
- 'true' if the pointer is not a null pointer
Check for equality.
- Parameters:
-
[in] | pPtr | Direct pointer to compare with, can be a null pointer |
- Returns:
- 'true' if the two pointers are equal
Check for equality.
- Parameters:
-
[in] | cPtr | Smart pointer to compare with |
- Returns:
- 'true' if the two pointers are equal
Check for equality.
- Parameters:
-
[in] | pPtr | Direct pointer to compare with, can be a null pointer |
- Returns:
- 'true' if the two pointers are not equal
Check for equality.
- Parameters:
-
[in] | cPtr | Smart pointer to compare with |
- Returns:
- 'true' if the two pointers are not equal
The documentation for this class was generated from the following files: