17 "Sends out the computed value"
29 "Arithmetic function to perform on inputs.",
35 "Value of output as computed last timestep.",
41 "Value of arg1 as computed last timestep.",
47 "Value of any of the internal fields, output, arg1, arg2, arg3,"
48 "as specified by the index argument from 0 to 3.",
56 "Handles argument 1. This just assigns it",
60 "Handles argument 2. This just assigns it",
64 "Handles argument 3. This sums in each input, and clears each clock tick.",
68 "Store the product of the two arguments in output_",
72 "Handles process call",
75 "Handles reinit call",
81 static Finfo* procShared[] = {
85 "Shared message for process and reinit",
86 procShared,
sizeof( procShared ) /
sizeof(
const Finfo* )
89 static Finfo* arithFinfos[] = {
107 sizeof( arithFinfos ) /
sizeof (
Finfo* ),
117 : function_(
"sum" ),
119 arg1_( 0.0 ), arg2_( 0.0 ), arg3_( 0.0 )
132 arg3_ <<
" " << &arg3_ << endl;
160 cout << arg <<
" " << &
arg3_ << endl;
void setFunction(string v)
void reinit(const Eref &e, ProcPtr p)
double getIdentifiedArg(unsigned int i) const
Element * element() const
static SrcFinfo1< double > * output()
void process(const Eref &e, ProcPtr p)
void arg1x2(double arg1, double arg2)
void setIdentifiedArg(unsigned int i, double val)
string getFunction() const
static const Cinfo * initCinfo()
static const Cinfo * initCinfo()
const string & getName() const
static const Cinfo * arithCinfo