MOOSE - Multiscale Object Oriented Simulation Environment
|
#include <Finfo.h>
Public Member Functions | |
virtual bool | addMsg (const Finfo *target, ObjId mid, Element *src) const |
virtual bool | checkTarget (const Finfo *target) const |
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 void | registerFinfo (Cinfo *c)=0 |
virtual string | rttiType () const |
virtual bool | strGet (const Eref &tgt, const string &field, string &returnValue) const =0 |
virtual bool | strSet (const Eref &tgt, const string &field, const string &arg) const =0 |
virtual | ~Finfo () |
Static Public Member Functions | |
static const Cinfo * | initCinfo () |
Private Attributes | |
string | doc_ |
string | name_ |
Sets up specified Msg between src and dest. Does all the type checking. Returns 1 on success. Defaults to 0 because many Finfo combinations won't work.
Reimplemented in SrcFinfo, and SharedFinfo.
Definition at line 92 of file Finfo.h.
Referenced by addClockMsg(), Shell::adopt(), Shell::innerAddMsg(), Shell::innerMove(), FieldElementFinfoBase::postCreationFunc(), testCreateMsg(), testFibonacci(), testSendSpike(), testSharedMsg(), and testSparseMsg().
|
inlinevirtual |
Registers the Msg slot to be used for transmitting messages. SrcFinfos take the 'current' value and increment it, other msgs leave it alone. virtual BindIndex registerBindIndex( BindIndex current ) = 0; Checks that the type of target Finfo matches self, and is safe to exchange messages with. Is called only from msg src, so most Finfos return 0. SrcFinfo and SharedFinfo will need to implement this.
Reimplemented in SrcFinfo, and SharedFinfo.
Definition at line 81 of file Finfo.h.
Referenced by Shell::doAddMsg(), and Shell::innerAddMsg().
const string & Finfo::docs | ( | ) | const |
Returns documentation string.
Definition at line 85 of file Finfo.cpp.
References doc_.
Referenced by FinfoWrapper::docs(), and initCinfo().
|
static |
Returns the Class Info for this Finfo
Definition at line 23 of file Finfo.cpp.
References FinfoWrapper::dest(), docs(), FinfoWrapper::docs(), finfoCinfo, FinfoWrapper::getName(), Neutral::initCinfo(), FinfoWrapper::src(), and FinfoWrapper::type().
Referenced by buildFinfoElement().
|
virtual |
Returns subsidiary DestFinfos
Reimplemented in SharedFinfo, and ValueFinfoBase.
Definition at line 131 of file Finfo.cpp.
Referenced by FinfoWrapper::dest().
|
virtual |
Returns subsidiary SrcFinfos
Reimplemented in SharedFinfo.
Definition at line 125 of file Finfo.cpp.
Referenced by FinfoWrapper::src().
const string & Finfo::name | ( | ) | const |
Returns the Finfo name
Definition at line 80 of file Finfo.cpp.
References name_.
Referenced by convertConcToNumRateUsingMesh(), defineDestFinfos(), Cinfo::destFinfoName(), ElementValueFinfo< T, F >::ElementValueFinfo(), FieldElementFinfo< T, F >::FieldElementFinfo(), Neutral::getDestFields(), getFieldDict(), getFieldNames(), FinfoWrapper::getName(), Neutral::getSourceFields(), Neutral::getValueFields(), ValueFinfoBase::innerDest(), LookupElementValueFinfo< T, L, F >::LookupElementValueFinfo(), LookupValueFinfo< T, L, F >::LookupValueFinfo(), FieldElementFinfoBase::postCreationFunc(), ReadOnlyElementValueFinfo< T, F >::ReadOnlyElementValueFinfo(), ReadOnlyLookupElementValueFinfo< T, L, F >::ReadOnlyLookupElementValueFinfo(), ReadOnlyLookupValueFinfo< T, L, F >::ReadOnlyLookupValueFinfo(), ReadOnlyValueFinfo< T, F >::ReadOnlyValueFinfo(), DestFinfo::registerFinfo(), Cinfo::registerFinfo(), Cinfo::reportFids(), Element::showMsg(), Cinfo::srcFinfoName(), and ValueFinfo< T, F >::ValueFinfo().
This function is called on each new Element after it is created, in case any stuff needs doing. Typical uses are to create FieldElements automatically as soon as the parent is made. Used in FieldElementFinfo.h
Reimplemented in FieldElementFinfoBase.
|
pure virtual |
Returns string-ified form to handle template expectations for name field string getName() const; Assign function Ids, bindIndex and so on.
Implemented in ReadOnlyLookupValueFinfo< T, L, F >, ReadOnlyValueFinfo< T, F >, ReadOnlyLookupElementValueFinfo< T, L, F >, ReadOnlyElementValueFinfo< T, F >, ValueFinfo< T, F >, LookupValueFinfo< T, L, F >, FieldElementFinfoBase, LookupElementValueFinfo< T, L, F >, ElementValueFinfo< T, F >, SrcFinfo, SharedFinfo, and DestFinfo.
Referenced by Cinfo::registerFinfo().
|
virtual |
Returns the documentation string for the Finfo string docs() const; Returns the RTTI type string for the finfo by referring to an internal virtual function. string type() const; Returns the list of subsidiary SrcFinfos. Used in Shared Finfos, empty otherwise. Goes via internal virtual function. vector< string > src() const; Returns the list of subsidiary destFinfos. Used in SharedFinfos and ValueFinfos, empty otherwise. Goes via internal virtual function. vector< string > dest() const; Returns an RTTI type string for this Finfo.
Reimplemented 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 >, FieldElementFinfo< T, F >, ReadOnlyLookupValueFinfo< T, L, F >, ReadOnlyValueFinfo< T, F >, ReadOnlyLookupElementValueFinfo< T, L, F >, ReadOnlyElementValueFinfo< T, F >, SrcFinfo0, LookupValueFinfo< T, L, F >, ValueFinfo< T, F >, LookupElementValueFinfo< T, L, F >, ElementValueFinfo< T, F >, SharedFinfo, and DestFinfo.
Definition at line 120 of file Finfo.cpp.
Referenced by getFieldDict(), getFieldType(), and FinfoWrapper::type().
|
pure virtual |
Function to return value of field into a string argument. Returns true on success. Normally called only from SetGet::strGet.
Implemented in ReadOnlyLookupValueFinfo< T, L, F >, ReadOnlyValueFinfo< T, F >, ReadOnlyLookupElementValueFinfo< T, L, F >, ReadOnlyElementValueFinfo< T, F >, LookupValueFinfo< T, L, F >, ValueFinfo< T, F >, FieldElementFinfoBase, LookupElementValueFinfo< T, L, F >, ElementValueFinfo< T, F >, SrcFinfo, SharedFinfo, and DestFinfo.
Referenced by SetGet::strGet().
|
pure virtual |
Function to set this field using a string argument. Returns true on success. Normally called only from SetGet::strSet.
Implemented in ReadOnlyLookupValueFinfo< T, L, F >, ReadOnlyValueFinfo< T, F >, ReadOnlyLookupElementValueFinfo< T, L, F >, ReadOnlyElementValueFinfo< T, F >, ValueFinfo< T, F >, LookupValueFinfo< T, L, F >, FieldElementFinfoBase, ElementValueFinfo< T, F >, LookupElementValueFinfo< T, L, F >, SrcFinfo, SharedFinfo, and DestFinfo.
Referenced by SetGet::strSet().