Sparksee 6.1.0
Handler< T > Class Template Reference

Handles a reference. More...

#include <Handler.h>

Inheritance diagram for Handler< T >:
Inheritance graph

Public Member Functions

 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.

Protected Member Functions

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.

Detailed Description

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

Constructor & Destructor Documentation

◆ Handler()

template<typename T>
Handler< T >::Handler ( T * h)
inline

Creates a new instance with the given reference.

Parameters
h[in] Reference to be handled.

◆ ~Handler()

template<typename T>
virtual Handler< T >::~Handler ( )
inlinevirtual

Destructor.

Frees the handled reference.

References FreeHandler().

Member Function Documentation

◆ GetHandler() [1/2]

template<typename T>
T * Handler< T >::GetHandler ( )
inline

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()

template<typename T>
bool_t Handler< T >::IsNull ( ) const
inlineprotected

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: