API Guides > ConceptRT 3.x
AutoDispose Class Reference

Automatic dispose. More...

Detailed Description

Automatic dispose.

Public Member Methods

 AutoDispose (IDisposable &disposable)
 Default constructor. More...
 
 ~AutoDispose ()
 Destructor. More...
 
void Dispose ()
 Unlocks this object. More...
 
IDisposableGetDisposable ()
 Gets the disposable. More...
 
bool GetDisposed ()
 Gets the locked. More...
 

Constructor & Destructor Documentation

AutoDispose ( IDisposable disposable)
inline

Default constructor.

Parameters
disposable[in,out] The disposable.
~AutoDispose ( )
inline

Destructor.

Methods Documentation

void Dispose ( )
inline

Unlocks this object.

IDisposable& GetDisposable ( )
inline

Gets the disposable.

Returns
The disposable.
RT Exceptions:
RT_ERROR_INTERNAL_UNEXPECTABLE_ERROR
bool GetDisposed ( )
inline

Gets the locked.

Returns
true if it succeeds, false if it fails.