#include <Teko_StaticRequestCallback.hpp>
Public Member Functions | |
DataT | request (const RequestMesg &rm) |
void | preRequest (const RequestMesg &rm) |
bool | handlesRequest (const RequestMesg &rm) |
A simple request interface that takes a static bit of data to return to Teko. This is meant primarily as a testing and early stage development tool.
The constructor takes an object of the same type the class was templated on. It also takes a string to be used to match the request.
Definition at line 28 of file Teko_StaticRequestCallback.hpp.
|
virtual |
Satisfy a request. Similar to preRequest
no assumption on the response to handlesRequest
is made. Again its up to the user to satisfy this.
Implements Teko::RequestCallback< DataT >.
Definition at line 42 of file Teko_StaticRequestCallback.hpp.
|
virtual |
Let the object know, that there is a request pending. This permits the application code to ``prepare'' to satisfy the request. This only must be called on construction of the preconditioner factory. If the result of the request must be constructed multiple times, that is incombant on the developer of the callback.
handlesRequest
being true for this message is made. It is up to the application to verify this. Implements Teko::RequestCallbackBase.
Definition at line 49 of file Teko_StaticRequestCallback.hpp.
|
virtual |
Does this object satisfy the request?
Implements Teko::RequestCallback< DataT >.
Definition at line 54 of file Teko_StaticRequestCallback.hpp.