My Project
|
Manipulator for the data-object. More...
#include <ManipulatorBase.hh>
Public Member Functions | |
ManipulatorBase () | |
~ManipulatorBase () | |
void | SetTarget (T *target) |
T * | Put () |
T * | Duplicate () |
void | Clear () |
Protected Attributes | |
T * | Target |
Manipulator for the data-object.
This class is one of the base-class for constructing analysis operators. The functionality of the operator produced with this class is that the input data-object is operated some procedures in the derived class of this base-class and the pointer of input object is passed as output-object to the next operator. The dynamical data-object assigned to a result-object is not produced in the derived class.
If you want to construct analysis operators whose functions are, (1) the type of input-object is not identical to the output-object, (2) the number of input or output objects is more than two, (3) the output object should be deleted by the destructor of the operator.
See the manual of "OperatorBase".
ManipulatorBase< T >::ManipulatorBase | ( | ) |
Constructor
ManipulatorBase< T >::~ManipulatorBase | ( | ) |
Destructor. This method will delete the entry of the target object, but the target object will not delete.
void ManipulatorBase< T >::Clear | ( | ) | [inline] |
This method will delete the entry of the target object, but the target object will not delete. You can reuse the operator after calling this method.
T * ManipulatorBase< T >::Duplicate | ( | ) |
Return the calculated data-object. The contents of the object is identical with the object returned by "T* Put()". The returned dynamical data-object is constructed and copied in this method. The returned object should be deleted in your application.
T* ManipulatorBase< T >::Put | ( | ) | [inline] |
Return the target object operated in the derived class. The value of the pointer is identical to the value input by "void SetTarget( T* )". See the comments of "T *Duplicate()".
void ManipulatorBase< T >::SetTarget | ( | T * | target | ) | [inline] |
Set the pointer of the target data object. The pointer will be returned as output object by "T *Put()" after calculating.