A Handler is similar to an Action in the sense it will act upon commands invoked by the user. More...
#include <handler.h>
Inherited by LibGeoDecomp::RemoteSteererHelpers::GetHandler< CELL_TYPE, MEMBER_TYPE >.
Public Types | |
typedef APITraits::SelectTopology < CELL_TYPE >::Value | Topology |
typedef GridBase< CELL_TYPE, Topology::DIM > | GridType |
Public Member Functions | |
Handler (const std::string &myKey) | |
virtual | ~Handler () |
virtual bool | operator() (const StringVec ¶meters, Pipe &pipe, GridType *grid, const Region< Topology::DIM > &validRegion, unsigned step)=0 |
Hanlde command specified by parameters; returns true if command was processed, false if command should be requeued. | |
virtual std::string | key () |
Private Attributes | |
std::string | myKey |
A Handler is similar to an Action in the sense it will act upon commands invoked by the user.
Unlike Actions, a Handler has direct access to the grid, but will be triggered by the RemoteSteerer, not via the CommandServer.
typedef GridBase<CELL_TYPE, Topology::DIM> LibGeoDecomp::RemoteSteererHelpers::Handler< CELL_TYPE >::GridType |
Reimplemented in LibGeoDecomp::RemoteSteererHelpers::GetHandler< CELL_TYPE, MEMBER_TYPE >.
typedef APITraits::SelectTopology<CELL_TYPE>::Value LibGeoDecomp::RemoteSteererHelpers::Handler< CELL_TYPE >::Topology |
Reimplemented in LibGeoDecomp::RemoteSteererHelpers::GetHandler< CELL_TYPE, MEMBER_TYPE >.
LibGeoDecomp::RemoteSteererHelpers::Handler< CELL_TYPE >::Handler | ( | const std::string & | myKey | ) | [inline, explicit] |
virtual LibGeoDecomp::RemoteSteererHelpers::Handler< CELL_TYPE >::~Handler | ( | ) | [inline, virtual] |
virtual std::string LibGeoDecomp::RemoteSteererHelpers::Handler< CELL_TYPE >::key | ( | ) | [inline, virtual] |
virtual bool LibGeoDecomp::RemoteSteererHelpers::Handler< CELL_TYPE >::operator() | ( | const StringVec & | parameters, | |
Pipe & | pipe, | |||
GridType * | grid, | |||
const Region< Topology::DIM > & | validRegion, | |||
unsigned | step | |||
) | [pure virtual] |
Hanlde command specified by parameters; returns true if command was processed, false if command should be requeued.
This is useful if for instance not all relevant cells were available in validRegion.
std::string LibGeoDecomp::RemoteSteererHelpers::Handler< CELL_TYPE >::myKey [private] |