#include <SetGet.h>
Public Member Functions | |
SetGet2 () | |
Static Public Member Functions | |
static bool | set (const ObjId &dest, const string &field, A1 arg1, A2 arg2) |
static bool | setVec (Id destId, const string &field, const vector< A1 > &arg1, const vector< A2 > &arg2) |
static bool | innerStrSet (const ObjId &dest, const string &field, const string &val) |
SetGet2 handles 2-argument Sets. It does not deal with Gets.
static bool SetGet2< A1, A2 >::innerStrSet | ( | const ObjId & | dest, | |
const string & | field, | |||
const string & | val | |||
) | [inline, static] |
Blocking call using string conversion.
static bool SetGet2< A1, A2 >::set | ( | const ObjId & | dest, | |
const string & | field, | |||
A1 | arg1, | |||
A2 | arg2 | |||
) | [inline, static] |
Blocking, typed 'Set' call
Reimplemented in LookupField< L, A >.
Referenced by benchmarkMsg(), makeStandardElements(), testReMesh(), testRunGsolve(), and testRunKsolve().
static bool SetGet2< A1, A2 >::setVec | ( | Id | destId, | |
const string & | field, | |||
const vector< A1 > & | arg1, | |||
const vector< A2 > & | arg2 | |||
) | [inline, static] |
Assign a vector of targets, using matching vectors of arguments arg1 and arg2. Specifically, index i on the target receives arguments arg1[i], arg2[i]. Note that there is no requirement for the size of the argument vectors to be equal to the size of the target array of objects. If there are fewer arguments then the index cycles back, so as to tile the target array with as many arguments as we have.
Not yet implemented correct handling for FieldElements.
Reimplemented in LookupField< L, A >.
Referenced by test2ArgSetVec().