Handler< T > Class Template Reference
[Gdb]

Handles a reference. More...

Inheritance diagram for Handler< T >:

Inheritance graph
Collaboration diagram for Handler< T >:

Collaboration graph

List of all members.

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

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 (  )  [inline, virtual]

Destructor.

Frees the handled reference.


Member Function Documentation

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

Gets the handled reference.

Returns:
The handled reference.

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

Gets the handled reference.

Returns:
The handled reference.

template<typename T>
void Handler< T >::SetHandler ( T *  h  )  [inline, protected]

Sets the handled reference.

Parameters:
h [in] The handled reference.

template<typename T>
bool_t Handler< T >::IsNull (  )  const [inline, protected]

Gets if the handler is NULL.

Returns:
TRUE if the handler is NULL, FALSE otherwise.

Reimplemented in TextStream, and Value.


The documentation for this class was generated from the following file:

Generated on Tue Jun 2 13:44:15 2015 for Sparksee by  doxygen 1.5.6