MOOSE - Multiscale Object Oriented Simulation Environment
|
#include <SetGet.h>
Public Member Functions | |
LookupField (const ObjId &dest) | |
![]() | |
SetGet2 () | |
![]() | |
virtual bool | checkOpClass (const OpFunc *op) const =0 |
SetGet () | |
virtual | ~SetGet () |
Static Public Member Functions | |
static A | get (const ObjId &dest, const string &field, L index) |
static void | getVec (Id dest, const string &field, vector< L > &index, vector< A > &vec) |
static bool | innerStrGet (const ObjId &dest, const string &field, const string &indexStr, string &str) |
static bool | innerStrSet (const ObjId &dest, const string &field, const string &indexStr, const string &val) |
static bool | set (const ObjId &dest, const string &field, L index, A arg) |
static bool | setRepeat (Id destId, const string &field, const vector< L > &index, A arg) |
static bool | setVec (Id destId, const string &field, const vector< L > &index, const vector< A > &arg) |
static bool | setVec (ObjId dest, const string &field, const vector< L > &index, const vector< A > &arg) |
![]() | |
static bool | innerStrSet (const ObjId &dest, const string &field, const string &val) |
static bool | set (const ObjId &dest, const string &field, Larg1, Aarg2) |
static bool | setVec (Id destId, const string &field, const vector< L > &arg1, const vector< A > &arg2) |
![]() | |
static const OpFunc * | checkSet (const string &field, ObjId &tgt, FuncId &fid) |
static const vector< double * > * | dispatchGet (const ObjId &tgt, FuncId tgtFid, const double *arg, unsigned int size) |
Sends out request for data, and awaits its return. More... | |
static bool | strGet (const ObjId &tgt, const string &field, string &ret) |
static bool | strSet (const ObjId &dest, const string &field, const string &val) |
LookupField handles fields that have an index arguments. Examples include arrays and maps. The first argument in the 'Set' is the index, the second the value. The first and only argument in the 'get' is the index. Here A is the type of the value, and L the lookup index.
|
inline |
|
inlinestatic |
Gets a value on a specific object, looking it up using the provided index.
Definition at line 532 of file SetGet.h.
References SetGet::checkSet(), ObjId::eref(), ObjId::isDataHere(), and LookupGetOpFuncBase< L, A >::returnOp().
Referenced by get_simple_lookupfield(), Neutral::getDt(), lookupVolumeFromMesh(), SteadyState::setStoich(), testGetMsg(), testLookupSetGet(), and testTable().
|
inlinestatic |
Blocking call that returns a vector of values in vec. This variant goes through each target object entry on dest, and passes in the same lookup index to each one. The results are put together in the vector vec.
Definition at line 573 of file SetGet.h.
References SetGet::checkSet(), Id::element(), Id::path(), Element::resize(), and LookupGetOpFuncBase< L, A >::returnOp().
|
inlinestatic |
Blocking virtual call for finding a value and returning in a string.
Definition at line 602 of file SetGet.h.
References Conv< T >::str2val(), and Conv< T >::val2str().
Referenced by LookupElementValueFinfo< T, L, F >::strGet(), LookupValueFinfo< T, L, F >::strGet(), ReadOnlyLookupElementValueFinfo< T, L, F >::strGet(), and ReadOnlyLookupValueFinfo< T, L, F >::strGet().
|
inlinestatic |
Blocking call using string conversion
Definition at line 514 of file SetGet.h.
References LookupField< L, A >::set(), and Conv< T >::str2val().
Referenced by LookupElementValueFinfo< T, L, F >::strSet(), and LookupValueFinfo< T, L, F >::strSet().
|
inlinestatic |
Blocking, typed 'Set' call. Identical to SetGet2::set.
Definition at line 467 of file SetGet.h.
References SetGet2< A1, A2 >::set().
Referenced by Shell::doSetClock(), LookupField< L, A >::innerStrSet(), Neuron::scaleHeadDiffusion(), testClock(), and testLookupSetGet().
|
inlinestatic |
Faking setRepeat too. Just plugs into setVec.
Definition at line 504 of file SetGet.h.
References LookupField< L, A >::setVec().
|
inlinestatic |
This setVec assigns goes through each object entry in the destId, and assigns the corresponding index and argument to it.
Definition at line 479 of file SetGet.h.
References SetGet2< A1, A2 >::setVec().
Referenced by LookupField< L, A >::setRepeat().
|
inlinestatic |
This setVec takes a specific object entry, presumably one with an array of values within it. The it goes through each specified index and assigns the corresponding argument. This is a brute-force assignment.
Definition at line 493 of file SetGet.h.
References SetGet2< A1, A2 >::setVec().