STK++ 0.9.13
|
Abstract class for all running class based on a data set. More...
#include <STK_IRunner.h>
Public Member Functions | |
Array const * | p_data () const |
get the data set | |
virtual void | setData (Array const *p_data) |
Set the data set. | |
virtual void | setData (Array const &data) |
Set the data set. | |
![]() | |
String const & | error () const |
get the last error message. | |
virtual bool | run ()=0 |
run the computations. | |
Protected Member Functions | |
IRunnerWithData () | |
default constructor. | |
IRunnerWithData (Array const *const p_data) | |
constructor with a pointer on the constant data set | |
IRunnerWithData (Array const &data) | |
constructor with a constant reference on the data set | |
IRunnerWithData (IRunnerWithData const &runner) | |
copy constructor | |
~IRunnerWithData () | |
destructor | |
![]() | |
IRunnerBase () | |
default constructor | |
IRunnerBase (IRunnerBase const &runner) | |
copy constructor | |
virtual | ~IRunnerBase () |
destructor | |
virtual void | update () |
update the runner. | |
Protected Attributes | |
Array const * | p_data_ |
A pointer on the original data set. | |
![]() | |
String | msg_error_ |
String with the last error message. | |
bool | hasRun_ |
true if run has been used, false otherwise | |
Abstract class for all running class based on a data set.
This Interface is an extension of the IrunnerBase class for runners using a data set. The data set to use is not copied and a pointer on the data set to used is stored internally.
The pure virtual method to implement is inherited from IRunnerBase
and the virtual method that can be overloaded are
The update()
method is called when a new data set is set using the default implementation of setData
.
Definition at line 121 of file STK_IRunner.h.
|
inlineprotected |
default constructor.
Definition at line 125 of file STK_IRunner.h.
|
inlineprotected |
constructor with a pointer on the constant data set
p_data | pointer on the data set to run |
Definition at line 129 of file STK_IRunner.h.
|
inlineprotected |
constructor with a constant reference on the data set
data | data set to run |
Definition at line 133 of file STK_IRunner.h.
|
inlineprotected |
copy constructor
runner | the runner to copy |
Definition at line 137 of file STK_IRunner.h.
|
inlineprotected |
|
inline |
get the data set
Definition at line 148 of file STK_IRunner.h.
References STK::IRunnerWithData< Array >::p_data_.
Referenced by STK::IRunnerWithData< Array >::setData().
|
inlinevirtual |
Set the data set.
If the state of the derived runner change when a new data set is set the user have to overload the udpate() method.
data | The data set to run |
Definition at line 163 of file STK_IRunner.h.
References STK::IRunnerBase::hasRun_, STK::IRunnerWithData< Array >::p_data_, and STK::IRunnerBase::update().
|
inlinevirtual |
Set the data set.
If the state of the derived runner change when a new data set is set the user have to overload the udpate() method.
p_data | A pointer on the data set to run |
Definition at line 153 of file STK_IRunner.h.
References STK::IRunnerBase::hasRun_, STK::IRunnerWithData< Array >::p_data(), STK::IRunnerWithData< Array >::p_data_, and STK::IRunnerBase::update().
|
protected |
A pointer on the original data set.
Definition at line 172 of file STK_IRunner.h.
Referenced by STK::IRunnerWithData< Array >::p_data(), STK::IRunnerWithData< Array >::setData(), and STK::IRunnerWithData< Array >::setData().