MOOSE - Multiscale Object Oriented Simulation Environment
|
#include <SharedFinfo.h>
Public Member Functions | |
bool | addMsg (const Finfo *target, ObjId mid, Element *src) const |
bool | checkTarget (const Finfo *target) const |
const vector< Finfo * > & | dest () const |
vector< string > | innerDest () const |
vector< string > | innerSrc () const |
void | registerFinfo (Cinfo *c) |
string | rttiType () const |
This always returns void. We need to check the subsidiary Finfos. More... | |
SharedFinfo (const string &name, const string &doc, Finfo **entries, unsigned int numEntries) | |
const vector< SrcFinfo * > & | src () const |
bool | strGet (const Eref &tgt, const string &field, string &returnValue) const |
bool | strSet (const Eref &tgt, const string &field, const string &arg) const |
~SharedFinfo () | |
![]() | |
const string & | docs () const |
Returns documentation string. More... | |
Finfo (const string &name, const string &doc) | |
const string & | name () const |
virtual void | postCreationFunc (Id newId, Element *newElm) const |
virtual | ~Finfo () |
Private Attributes | |
vector< Finfo * > | dest_ |
vector< SrcFinfo * > | src_ |
Additional Inherited Members | |
![]() | |
static const Cinfo * | initCinfo () |
This is a SharedFinfo, which wraps an arbitrary set of regular Src and Dest Messages. Its main job is to do typechecking for setting up multiple data streams to go across the same Msg.
Definition at line 18 of file SharedFinfo.h.
SharedFinfo::SharedFinfo | ( | const string & | name, |
const string & | doc, | ||
Finfo ** | entries, | ||
unsigned int | numEntries | ||
) |
This set of classes define Message Sources. Their main job is to supply a type-safe send operation, and to provide typechecking for it.
Definition at line 16 of file SharedFinfo.cpp.
References dest_, numEntries, and src_.
|
inline |
Definition at line 24 of file SharedFinfo.h.
First calls checkTarget on all targets, then sets up message. Returns true on success.
Reimplemented from Finfo.
Definition at line 95 of file SharedFinfo.cpp.
References checkTarget(), dest_, Msg::e1(), Msg::e2(), Msg::getMsg(), Element::getName(), Element::id(), and src_.
|
virtual |
Checks that the type of target Finfo matches self, and is safe to exchange messages with.
It is possible that we have DestFinfos in this SharedFinfo, that have not been registered. So we need to scan through. Note that the register operation overwrites values if they already exist. Best not to have conflicts!.
Reimplemented from Finfo.
Definition at line 74 of file SharedFinfo.cpp.
Referenced by addMsg().
const vector< Finfo * > & SharedFinfo::dest | ( | ) | const |
Definition at line 150 of file SharedFinfo.cpp.
References dest_.
Referenced by Element::getNeighbors(), and insertSharedMsgs().
|
virtual |
Returns subsidiary DestFinfos
Reimplemented from Finfo.
Definition at line 167 of file SharedFinfo.cpp.
References dest_.
|
virtual |
|
virtual |
Returns string-ified form to handle template expectations for name field string getName() const; Assign function Ids, bindIndex and so on.
Implements Finfo.
Definition at line 32 of file SharedFinfo.cpp.
References dest_, Cinfo::registerFinfo(), and src_.
|
virtual |
This always returns void. We need to check the subsidiary Finfos.
Reimplemented from Finfo.
Definition at line 176 of file SharedFinfo.cpp.
const vector< SrcFinfo * > & SharedFinfo::src | ( | ) | const |
Definition at line 144 of file SharedFinfo.cpp.
References src_.
Referenced by Element::getNeighbors().
|
virtual |
Function to return value of field into a string argument. Returns true on success. Normally called only from SetGet::strGet.
Implements Finfo.
Definition at line 48 of file SharedFinfo.cpp.
|
virtual |
Function to set this field using a string argument. Returns true on success. Normally called only from SetGet::strSet.
Implements Finfo.
Definition at line 42 of file SharedFinfo.cpp.
|
private |
Definition at line 60 of file SharedFinfo.h.
Referenced by addMsg(), checkTarget(), dest(), innerDest(), registerFinfo(), and SharedFinfo().
|
private |
Definition at line 59 of file SharedFinfo.h.
Referenced by addMsg(), checkTarget(), innerSrc(), registerFinfo(), SharedFinfo(), and src().