MOOSE - Multiscale Object Oriented Simulation Environment
|
#include <SrcFinfo.h>
Public Member Functions | |
bool | addMsg (const Finfo *target, ObjId mid, Element *src) const |
bool | checkTarget (const Finfo *target) const |
BindIndex | getBindIndex () const |
void | registerFinfo (Cinfo *c) |
virtual void | sendBuffer (const Eref &e, double *buf) const =0 |
void | setBindIndex (BindIndex b) |
SrcFinfo (const string &name, const string &doc) | |
bool | strGet (const Eref &tgt, const string &field, string &returnValue) const |
bool | strSet (const Eref &tgt, const string &field, const string &arg) const |
~SrcFinfo () | |
![]() | |
const string & | docs () const |
Returns documentation string. More... | |
Finfo (const string &name, const string &doc) | |
virtual vector< string > | innerDest () const |
virtual vector< string > | innerSrc () const |
const string & | name () const |
virtual void | postCreationFunc (Id newId, Element *newElm) const |
virtual string | rttiType () const |
virtual | ~Finfo () |
Static Public Attributes | |
static const BindIndex | BadBindIndex = 65535 |
Private Attributes | |
unsigned short | bindIndex_ |
Additional Inherited Members | |
![]() | |
static const Cinfo * | initCinfo () |
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 24 of file SrcFinfo.h.
SrcFinfo::SrcFinfo | ( | const string & | name, |
const string & | doc | ||
) |
Definition at line 18 of file SrcFinfo.cpp.
|
inline |
Definition at line 29 of file SrcFinfo.h.
First checks that the target will work, then adds the Msg.
Reimplemented from Finfo.
Definition at line 50 of file SrcFinfo.cpp.
References Element::addMsgAndFunc(), bindIndex_, OpFunc::checkFinfo(), DestFinfo::getFid(), and DestFinfo::getOpFunc().
|
virtual |
Checks that the target will work for this Msg.
Reimplemented from Finfo.
Definition at line 41 of file SrcFinfo.cpp.
References OpFunc::checkFinfo(), and DestFinfo::getOpFunc().
BindIndex SrcFinfo::getBindIndex | ( | ) | const |
Definition at line 28 of file SrcFinfo.cpp.
References BadBindIndex, and bindIndex_.
Referenced by Neutral::child(), Neutral::children(), convertConcToNumRateUsingVol(), Element::getMsgTargetAndFunctions(), Element::getMsgTargets(), Element::getOutputs(), getReactantVols(), innerCopyMsgs(), SrcFinfo0::send(), SrcFinfo1< T >::send(), SrcFinfo2< T1, T2 >::send(), SrcFinfo3< T1, T2, T3 >::send(), SrcFinfo4< T1, T2, T3, T4 >::send(), SrcFinfo5< T1, T2, T3, T4, T5 >::send(), SrcFinfo6< T1, T2, T3, T4, T5, T6 >::send(), SrcFinfo1< T >::sendTo(), SrcFinfo2< T1, T2 >::sendTo(), SrcFinfo1< T >::sendVec(), Element::showMsg(), Cinfo::srcFinfoName(), and testSendMsg().
|
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 22 of file SrcFinfo.cpp.
References bindIndex_, and Cinfo::registerBindIndex().
|
pure virtual |
Sends contents of buffer on to msg targets Buffer has a header with the TgtInfo.
Implemented in SrcFinfo6< T1, T2, T3, T4, T5, T6 >, SrcFinfo5< T1, T2, T3, T4, T5 >, SrcFinfo4< T1, T2, T3, T4 >, SrcFinfo3< T1, T2, T3 >, SrcFinfo2< T1, T2 >, SrcFinfo1< T >, and SrcFinfo0.
Referenced by PostMaster::clearPendingRecv().
void SrcFinfo::setBindIndex | ( | BindIndex | b | ) |
Definition at line 36 of file SrcFinfo.cpp.
References bindIndex_.
Referenced by testSendMsg().
|
inlinevirtual |
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 40 of file SrcFinfo.h.
|
inlinevirtual |
Function to set this field using a string argument. Returns true on success. Normally called only from SetGet::strSet.
Implements Finfo.
Definition at line 35 of file SrcFinfo.h.
|
static |
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 65 of file SrcFinfo.h.
Referenced by getBindIndex().
|
private |
Index into the msgBinding_ vector.
Definition at line 70 of file SrcFinfo.h.
Referenced by addMsg(), getBindIndex(), registerFinfo(), and setBindIndex().