MOOSE - Multiscale Object Oriented Simulation Environment
|
#include <FieldElementFinfo.h>
Public Member Functions | |
FieldElementFinfoBase (const string &name, const string &doc, const Cinfo *fieldCinfo, bool deferCreate) | |
virtual unsigned int | getNumField (const char *parent) const =0 |
virtual func to get size of Field array, using char* for parent More... | |
virtual char * | lookupField (char *parent, unsigned int fieldIndex) const =0 |
void | postCreationFunc (Id parent, Element *parentElm) const |
void | registerFinfo (Cinfo *c) |
virtual void | setNumField (char *parent, unsigned int num) const =0 |
virtual func to resize Field array, using char* for parent More... | |
bool | strGet (const Eref &tgt, const string &field, string &returnValue) const |
bool | strSet (const Eref &tgt, const string &field, const string &arg) const |
virtual | ~FieldElementFinfoBase () |
![]() | |
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 string | rttiType () const |
virtual | ~Finfo () |
Protected Attributes | |
bool | deferCreate_ |
const Cinfo * | fieldCinfo_ |
DestFinfo * | getNum_ |
DestFinfo * | setNum_ |
Additional Inherited Members | |
![]() | |
static const Cinfo * | initCinfo () |
This class sets up fields that should be accessed as independent FieldElements. These fields are typically complex ones with several sub-fields, and are also typically arranged in an array. Examples are Synapses on an IntFire Neuron.
The creation of this one Finfo sets up three things: First, the information for the FieldElement that will handle the class. Second, the set and get functions for the size of the array of Fields. Third, an automatic creation of the FieldElement whenever an Element of the Parent class is made. This defaults to a child, but can be moved.
Definition at line 26 of file FieldElementFinfo.h.
|
inline |
Definition at line 29 of file FieldElementFinfo.h.
|
inlinevirtual |
|
pure virtual |
virtual func to get size of Field array, using char* for parent
Implemented in FieldElementFinfo< T, F >.
Referenced by FieldElement::numField().
|
pure virtual |
virtual function to look up pointer for Field object. This casts everything down to chars so that the FieldElement can use it.
Implemented in FieldElementFinfo< T, F >.
Referenced by FieldElement::data().
Virtual function, defined in Finfo.h and overridden here.
Reimplemented from Finfo.
Definition at line 14 of file FieldElementFinfo.cpp.
References Finfo::addMsg(), deferCreate_, Id::element(), Id::eref(), fieldCinfo_, Cinfo::findFinfo(), Element::getName(), Neutral::initCinfo(), Msg::mid(), Finfo::name(), and Id::nextId().
|
inlinevirtual |
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 52 of file FieldElementFinfo.h.
References getNum_, Cinfo::registerFinfo(), Cinfo::registerPostCreationFinfo(), and setNum_.
|
pure virtual |
virtual func to resize Field array, using char* for parent
Implemented in FieldElementFinfo< T, F >.
Referenced by FieldElement::resizeField().
|
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 65 of file FieldElementFinfo.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 59 of file FieldElementFinfo.h.
|
protected |
Definition at line 100 of file FieldElementFinfo.h.
Referenced by postCreationFunc().
|
protected |
Definition at line 99 of file FieldElementFinfo.h.
Referenced by postCreationFunc().
|
protected |
Definition at line 98 of file FieldElementFinfo.h.
Referenced by FieldElementFinfo< T, F >::FieldElementFinfo(), registerFinfo(), and ~FieldElementFinfoBase().
|
protected |
Definition at line 97 of file FieldElementFinfo.h.
Referenced by FieldElementFinfo< T, F >::FieldElementFinfo(), registerFinfo(), and ~FieldElementFinfoBase().