Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
AutoCleaner< T > Class Template Reference

#include <elm/util/Cleaner.h>

+ Inheritance diagram for AutoCleaner< T >:

Public Member Functions

 AutoCleaner (T *p=0)
 
 AutoCleaner (const LockPtr< T > &locked)
 
- Public Member Functions inherited from LockPtr< T >
 LockPtr (T *p=0)
 
 LockPtr (const LockPtr &l)
 
 ~LockPtr (void)
 
LockPtroperator= (const LockPtr &lock)
 
LockPtroperator= (T *p)
 
T * operator-> (void) const
 
T & operator* (void) const
 
T * operator& (void) const
 
bool isNull (void) const
 
 operator bool (void) const
 
bool operator== (const LockPtr< T > &ap) const
 
bool operator!= (const LockPtr< T > &ap) const
 
bool operator> (const LockPtr< T > &ap) const
 
bool operator>= (const LockPtr< T > &ap) const
 
bool operator< (const LockPtr< T > &ap) const
 
bool operator<= (const LockPtr< T > &ap) const
 
- Public Member Functions inherited from Cleaner
virtual void clean (void)
 
virtual ~Cleaner (void)
 

Additional Inherited Members

- Static Public Attributes inherited from LockPtr< T >
static LockPtr< T > null
 

Detailed Description

template<class T>
class elm::AutoCleaner< T >

A cleaner for AutoPtr objects.

Parameters
TAuto-pointed object type.

Constructor & Destructor Documentation

◆ AutoCleaner() [1/2]

AutoCleaner ( T *  p = 0)
inline

Build an AutoCleaner on the given object.

Parameters
pPointed object.

◆ AutoCleaner() [2/2]

AutoCleaner ( const LockPtr< T > &  locked)
inline

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