Sparksee  6.0.2
Handler< T > Class Template Reference

Handles a reference. More...

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. More...
 
virtual ~Handler ()
 Destructor. More...
 
T * GetHandler ()
 Gets the handled reference. More...
 
const T * GetHandler () const
 Gets the handled reference. More...
 

Protected Member Functions

void SetHandler (T *h)
 Sets the handled reference. More...
 
void FreeHandler ()
 Frees (deletes) the handled reference.
 
bool_t IsNull () const
 Gets if the handler is NULL. More...
 

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

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

Creates a new instance with the given reference.

Parameters
h[in] Reference to be handled.
template<typename T>
virtual Handler< T >::~Handler ( )
inlinevirtual

Destructor.

Frees the handled reference.

Member Function Documentation

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

Gets the handled reference.

Returns
The handled reference.

Referenced by Value::SetVoid().

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

Gets the handled reference.

Returns
The handled reference.
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.
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: