Helper template to implement auto_ptr<>-like classes, but executing a functor in the destructor, instead of always deleting things.
More...
|
| Auto_Functor (X *p=0, Functor functor=Functor()) |
| Constructor. More...
|
|
| Auto_Functor (Auto_Functor &rhs) |
|
Auto_Functor< X, Functor > & | operator= (Auto_Functor &rhs) |
|
template<typename Y > |
| Auto_Functor (Auto_Functor< Y, Functor > &rhs) |
|
template<typename Y > |
Auto_Functor< X, Functor > & | operator= (Auto_Functor< Y, Functor > &rhs) |
|
| ~Auto_Functor () |
|
X & | operator* () const |
|
X * | operator-> () const |
|
X * | get () |
|
X * | release () |
|
void | reset (X *p=0) |
|
void | reset (X *p, Functor f) |
|
Functor const & | functor () const |
|
| Auto_Functor (Auto_Functor_Ref< X, Functor > rhs) |
|
Auto_Functor< X, Functor > & | operator= (Auto_Functor_Ref< X, Functor > rhs) |
|
template<typename Y > |
| operator Auto_Functor_Ref< Y, Functor > () |
|
template<typename Y > |
| operator Auto_Functor< Y, Functor > () |
|
template<typename Y > |
ACE_Utils::Auto_Functor< X, Functor > & | operator= (Auto_Functor< Y, Functor > &rhs) |
|
template<typename X, typename Functor>
class ACE_Utils::Auto_Functor< X, Functor >
Helper template to implement auto_ptr<>-like classes, but executing a functor in the destructor, instead of always deleting things.
The functor is called in the destructor, and it must implement:
Functor() throw();
Functor(Functor const &) throw();
Functor & operator=(Functor const &) throw();
void operator()(X * p) throw();