Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members
algorithmImport Class Reference
template class to convert a void member function of a class into an algorithmCommand.
More...
#include <algorithmImport.h>
Inheritance diagram for algorithmImport:
List of all members.
Public Methods |
| algorithmImport (T* t, ptr_mem run) |
| constructor - set the template and the member function to run.
|
virtual | ~algorithmImport () |
| default destructor.
|
virtual void | execute () |
| execute as algorithm the member function of the template class.
|
Private Types |
typedef void (T::* | ptr_mem )() |
Private Attributes |
T* | m_t |
| pointer to the template.
|
ptr_mem | m_run |
| pointer to the template member function.
|
Detailed Description
template<class T> class algorithmImport
template class to convert a void member function of a class into an algorithmCommand.
algorihtmImport is an algorithmVI.
algorithmImport takes as arguments: a template class and a pointer to a void member function of this class.
- the algorithm imported runs the member function of the template class.
- this template class is very useful to create algorithms from already existing classes which void methods without arguments could be in fact algorithms.
- the created algorithm should be incorporated into processManager.
Definition at line 19 of file algorithmImport.h.
Member Typedef Documentation
template<class T>
typedef void (T::* algorithmImport<T>::ptr_mem)() [private] |
|
Constructor & Destructor Documentation
template<class T>
algorithmImport<T>::algorithmImport<T> (
|
T * t, |
|
ptr_mem run ) |
|
constructor - set the template and the member function to run.
Definition at line 27 of file algorithmImport.h.
template<class T>
algorithmImport<T>::~algorithmImport<T> ( ) [inline, virtual] |
|
Member Function Documentation
template<class T>
void algorithmImport<T>::execute ( ) [inline, virtual] |
|
Member Data Documentation
template<class T>
ptr_mem algorithmImport<T>::m_run [private] |
|
template<class T>
T * algorithmImport<T>::m_t [private] |
|
The documentation for this class was generated from the following file:
Generated at Fri Aug 18 12:57:39 2000 for centella framework by
1.1.3 written by Dimitri van Heesch,
© 1997-2000