Handles a reference.
More...
#include <Handler.h>
|
|
| Handler () |
| | Creates a new instance.
|
| | Handler (T *h) |
| | Creates a new instance with the given reference.
|
| virtual | ~Handler () |
| | Destructor.
|
| T * | GetHandler () |
| | Gets the handled reference.
|
| const T * | GetHandler () const |
| | Gets the handled reference.
|
|
| void | SetHandler (T *h) |
| | Sets the handled reference.
|
|
void | FreeHandler () |
| | Frees (deletes) the handled reference.
|
| bool_t | IsNull () const |
| | Gets if the handler is NULL.
|
template<typename T>
class Handler< T >
Handles a reference.
The handled reference is automatically destroyed (deleted) when the instance is destroyed.
- Author
- Sparsity Technologies http://www.sparsity-technologies.com
◆ Handler()
Creates a new instance with the given reference.
- Parameters
-
| h | [in] Reference to be handled. |
◆ ~Handler()
Destructor.
Frees the handled reference.
References FreeHandler().
◆ GetHandler() [1/2]
Gets the handled reference.
- Returns
- The handled reference.
◆ GetHandler() [2/2]
template<typename T>
| const T * Handler< T >::GetHandler |
( |
| ) |
const |
|
inline |
Gets the handled reference.
- Returns
- The handled reference.
◆ IsNull()
Gets if the handler is NULL.
- Returns
- TRUE if the handler is NULL, FALSE otherwise.
◆ SetHandler()
template<typename T>
| void Handler< T >::SetHandler |
( |
T * | h | ) |
|
|
inlineprotected |
Sets the handled reference.
- Parameters
-
| h | [in] The handled reference. |
The documentation for this class was generated from the following file: