#include <Auto_Functor.h>
Collaboration diagram for ACE_Utils::Auto_Functor< X, Functor >:

Public Types | |
| typedef X | element_type |
| typedef Functor | functor_type |
Public Member Functions | |
| Auto_Functor (X *p=0, Functor functor=Functor()) throw () | |
| Constructor. | |
| Auto_Functor (Auto_Functor &rhs) throw () | |
| Auto_Functor< X, Functor > & | operator= (Auto_Functor &rhs) throw () |
| template<typename Y> | Auto_Functor (Auto_Functor< Y, Functor > &rhs) throw () |
| template<typename Y> Auto_Functor< X, Functor > & | operator= (Auto_Functor< Y, Functor > &rhs) throw () |
| ~Auto_Functor () throw () | |
| X & | operator * () const throw () |
| X * | operator-> () const throw () |
| X * | get () throw () |
| X * | release () throw () |
| void | reset (X *p=0) throw () |
| void | reset (X *p, Functor f) throw () |
| Functor const & | functor () const throw () |
| Auto_Functor (Auto_Functor_Ref< X, Functor > rhs) throw () | |
| Auto_Functor< X, Functor > & | operator= (Auto_Functor_Ref< X, Functor > rhs) throw () |
| template<typename Y> | operator Auto_Functor_Ref () throw () |
| template<typename Y> | operator Auto_Functor () throw () |
Private Attributes | |
| X * | p_ |
| Functor | f_ |
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();
Definition at line 58 of file Auto_Functor.h.
|
|||||
|
Definition at line 61 of file Auto_Functor.h. |
|
|||||
|
Definition at line 62 of file Auto_Functor.h. |
|
||||||||||||||||
|
Constructor.
Definition at line 16 of file Auto_Functor.inl.
|
|
||||||||||
|
Definition at line 24 of file Auto_Functor.inl.
|
|
||||||||||||||
|
Definition at line 43 of file Auto_Functor.inl.
|
|
|||||||||
|
Definition at line 15 of file Auto_Functor.cpp.
00017 {
00018 reset(0);
00019 }
|
|
||||||||||
|
Definition at line 102 of file Auto_Functor.inl.
|
|
|||||||||
|
Definition at line 95 of file Auto_Functor.inl.
00097 {
00098 return f_;
00099 }
|
|
|||||||||
|
Definition at line 77 of file Auto_Functor.inl.
00079 {
00080 return p_;
00081 }
|
|
|||||||||
|
Definition at line 61 of file Auto_Functor.inl.
00063 {
00064 return *p_;
00065 }
|
|
|||||||||||||
|
|
|
|||||||||||||
|
|
|
|||||||||
|
Definition at line 69 of file Auto_Functor.inl.
00071 {
00072 return p_;
00073 }
|
|
||||||||||
|
Definition at line 111 of file Auto_Functor.inl.
|
|
||||||||||||||
|
Definition at line 52 of file Auto_Functor.inl.
00054 {
00055 reset(rhs.release());
00056 return *this;
00057 }
|
|
||||||||||
|
Definition at line 33 of file Auto_Functor.inl.
|
|
|||||||||
|
Definition at line 85 of file Auto_Functor.inl.
00087 {
00088 X * tmp = p_;
00089 p_ = 0;
00090 return tmp;
00091 }
|
|
||||||||||||||||
|
Definition at line 33 of file Auto_Functor.cpp.
|
|
||||||||||
|
Definition at line 22 of file Auto_Functor.cpp.
|
|
|||||
|
Definition at line 129 of file Auto_Functor.h. |
|
|||||
|
Definition at line 127 of file Auto_Functor.h. |
1.3.6