MOOSE - Multiscale Object Oriented Simulation Environment
|
#include <SetGet.h>
Public Member Functions | |
virtual bool | checkOpClass (const OpFunc *op) const =0 |
SetGet () | |
virtual | ~SetGet () |
Static Public Member Functions | |
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) |
|
pure virtual |
Implemented in SetGet1< A >, and SetGet0.
Utility function to check that the target field matches this source type, to look up and pass back the fid, and to return the number of targetEntries. Tgt is passed in as the destination ObjId. May be changed inside, if the function determines that it should be directed to a child Element acting as a Value. Checks arg # and types for a 'set' call. Can be zero to 3 args. Returns # of tgts if good. This is 0 if bad. Passes back found fid.
Definition at line 15 of file SetGet.cpp.
References Neutral::child(), Element::cinfo(), ObjId::dataIndex, ObjId::element(), Id::element(), ObjId::eref(), ObjId::fieldIndex, Cinfo::findFinfo(), DestFinfo::getFid(), DestFinfo::getOpFunc(), ObjId::id, ObjId::isDataHere(), Element::numData(), and Id::path().
Referenced by Field< A >::get(), LookupField< L, A >::get(), Field< A >::getVec(), LookupField< L, A >::getVec(), SetGet0::set(), SetGet1< A >::set(), SetGet2< L, A >::set(), SetGet3< A1, A2, A3 >::set(), SetGet4< A1, A2, A3, A4 >::set(), SetGet5< A1, A2, A3, A4, A5 >::set(), SetGet6< A1, A2, A3, A4, A5, A6 >::set(), SetGet1< A >::setVec(), and SetGet2< L, A >::setVec().
|
static |
Sends out request for data, and awaits its return.
|
static |
Blocking 'get' call, returning into a string. There is a matching 'get<T> call, returning appropriate type.
Definition at line 72 of file SetGet.cpp.
References Element::cinfo(), ObjId::element(), ObjId::eref(), Cinfo::findFinfo(), Element::getName(), Shell::myNode(), and Finfo::strGet().
Referenced by testStrGet(), and wildcardFieldComparison().
|
static |
Blocking 'set' call, using automatic string conversion There is a matching blocking set call with typed arguments.
Definition at line 84 of file SetGet.cpp.
References Element::cinfo(), ObjId::element(), ObjId::eref(), Cinfo::findFinfo(), Element::getName(), Shell::myNode(), and Finfo::strSet().
Referenced by testStrSet().