MOOSE - Multiscale Object Oriented Simulation Environment
|
#include <OpFunc.h>
Public Member Functions | |
GetOpFunc1 (A(T::*func)(L) const ) | |
void | op (const Eref &e, L index, ObjId recipient, FuncId fid) const |
A | returnOp (const Eref &e, const L &index) const |
Distinct reduceOp with the index. More... | |
![]() | |
bool | checkFinfo (const Finfo *s) const |
const OpFunc * | makeHopFunc (HopIndex hopIndex) const |
const OpFunc * | makeHopFunc (HopIndex hopIndex, const L &index) const |
void | opBuffer (const Eref &e, double *buf) const |
Executes the OpFunc by converting args. More... | |
string | rttiType () const |
![]() | |
OpFunc () | |
unsigned int | opIndex () const |
virtual void | opVecBuffer (const Eref &e, double *buf) const |
Executes the OpFunc for all data by converting a vector of args. More... | |
bool | setIndex (unsigned int i) |
Used when rebuilding the Fid->OpFunc mapping. More... | |
virtual | ~OpFunc () |
Private Attributes | |
A(T::* | func_ )(L) const |
Additional Inherited Members | |
![]() | |
static const OpFunc * | lookop (unsigned int opIndex) |
static unsigned int | rebuildOpIndex () |
cleans out the entire Ops vector. Returns size of orig vector. More... | |
This specialized OpFunc is for looking up a single field value using a single argument. It generates an opFunc that takes two arguments:
|
inline |
|
inlinevirtual |
The buf just contains the funcid on the src element that is ready to receive the returned data. Also we are returning the data along the Msg that brought in the request, so we don't need to scan through all Msgs in the Element to find the right one. So we bypass the usual SrcFinfo::sendTo, and instead go right to the Qinfo::addToQ to send off data. Finally, the data is copied back-and-forth about 3 times. Wasteful, but the 'get' function is not to be heavily used.
Implements LookupGetOpFuncBase< L, A >.
Definition at line 183 of file OpFunc.h.
References Element::cinfo(), ObjId::element(), ObjId::eref(), Cinfo::getOpFunc(), OpFunc1Base< A >::op(), and GetOpFunc1< T, L, A >::returnOp().
|
inlinevirtual |
Distinct reduceOp with the index.
Implements LookupGetOpFuncBase< L, A >.
Definition at line 193 of file OpFunc.h.
References Eref::data(), and GetOpFunc1< T, L, A >::func_.
Referenced by GetOpFunc1< T, L, A >::op().
|
private |
Definition at line 198 of file OpFunc.h.
Referenced by GetOpFunc1< T, L, A >::returnOp().