MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SetGet0 Class Reference

#include <SetGet.h>

+ Inheritance diagram for SetGet0:
+ Collaboration diagram for SetGet0:

Public Member Functions

bool checkOpClass (const OpFunc *op) const
 
 SetGet0 ()
 
- Public Member Functions inherited from SetGet
 SetGet ()
 
virtual ~SetGet ()
 

Static Public Member Functions

static bool innerStrSet (const ObjId &dest, const string &field, const string &val)
 
static bool set (const ObjId &dest, const string &field)
 
- Static Public Member Functions inherited from SetGet
static const OpFunccheckSet (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)
 

Detailed Description

Definition at line 94 of file SetGet.h.

Constructor & Destructor Documentation

SetGet0::SetGet0 ( )
inline

Definition at line 97 of file SetGet.h.

98  {;}

Member Function Documentation

bool SetGet0::checkOpClass ( const OpFunc op) const
inlinevirtual

Implements SetGet.

Definition at line 139 of file SetGet.h.

References op().

139  {
140  return dynamic_cast< const OpFunc0Base* >( op );
141  }
static double op(double x)

+ Here is the call graph for this function:

static bool SetGet0::innerStrSet ( const ObjId dest,
const string &  field,
const string &  val 
)
inlinestatic

Blocking call using string conversion

Definition at line 133 of file SetGet.h.

References set().

135  {
136  return set( dest, field );
137  }
static bool set(const ObjId &dest, const string &field)
Definition: SetGet.h:103

+ Here is the call graph for this function:

static bool SetGet0::set ( const ObjId dest,
const string &  field 
)
inlinestatic

Blocking, typed 'Set' call

Definition at line 103 of file SetGet.h.

References SetGet::checkSet(), ObjId::eref(), ObjId::isGlobal(), ObjId::isOffNode(), OpFunc0Base::makeHopFunc(), MooseSetHop, OpFunc0Base::op(), op(), and OpFunc::opIndex().

Referenced by Shell::doQuit(), Shell::doReinit(), Shell::doStop(), innerStrSet(), and moose_ObjId_setDestField().

104  {
105  FuncId fid;
106  ObjId tgt( dest ); // checkSet may change the tgt.
107  const OpFunc* func = checkSet( field, tgt, fid );
108  const OpFunc0Base* op =
109  dynamic_cast< const OpFunc0Base* >( func );
110  if ( op ) {
111  if ( tgt.isOffNode() ) {
112  const OpFunc* op2 = op->makeHopFunc(
113  HopIndex( op->opIndex(), MooseSetHop ) );
114  const OpFunc0Base* hop =
115  dynamic_cast< const OpFunc0Base* >( op2 );
116  assert( hop );
117  hop->op( tgt.eref() );
118  delete op2;
119  if ( tgt.isGlobal() )
120  op->op( tgt.eref() );
121  return true;
122  } else {
123  op->op( tgt.eref() );
124  return true;
125  }
126  }
127  return 0;
128  }
static const OpFunc * checkSet(const string &field, ObjId &tgt, FuncId &fid)
Definition: SetGet.cpp:15
static double op(double x)
Definition: ObjId.h:20
virtual void op(const Eref &e) const =0
const unsigned char MooseSetHop
Definition: OpFuncBase.cpp:13
unsigned int FuncId
Definition: header.h:42
const OpFunc * makeHopFunc(HopIndex hopIndex) const
Definition: OpFuncBase.cpp:32
unsigned int opIndex() const
Definition: OpFuncBase.h:66

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


The documentation for this class was generated from the following file: