|
Gadget
|
This is the class used to calculate the value of the variables used in the model simulation. More...
#include <formula.h>

Public Member Functions | |
| Formula () | |
| This is the default Formula constructor. More... | |
| Formula (double initial) | |
| This is the Formula constructor that creates a Formula with a given initial value. More... | |
| Formula (const Formula &initial) | |
| This is the Formula constructor that creates a copy of an existing Formula. More... | |
| Formula (FunctionType ft, vector< Formula * > formlist) | |
| This is the Formula constructor for a given function type and list of parameters. More... | |
| ~Formula () | |
| This is the default Formula destructor. More... | |
| void | setValue (double init) |
| This function will set the value of the Formula. More... | |
| operator double () const | |
| This operator will return the value of the Formula. More... | |
| void | Interchange (Formula &newF, Keeper *keeper) const |
| This function will swap the Formula value for a new value. More... | |
| void | Inform (Keeper *keeper) |
| This function will inform the Keeper for the current model of the new Formula. More... | |
| void | Delete (Keeper *keeper) const |
| This function will delete a Formula value. More... | |
| Formula & | operator= (const Formula &F) |
| This operator will set the Formula equal to an existing Formula. More... | |
| FormulaType | getType () const |
| This will return the type of Formula class. More... | |
Friends | |
| CommentStream & | operator>> (CommentStream &infile, Formula &F) |
| This operator will read data from a CommentStream into a Formula. More... | |
This is the class used to calculate the value of the variables used in the model simulation.
| Formula::Formula | ( | ) |
This is the default Formula constructor.
| Formula::Formula | ( | double | initial | ) |
| Formula::Formula | ( | const Formula & | initial | ) |
| Formula::Formula | ( | FunctionType | ft, |
| vector< Formula * > | formlist | ||
| ) |
| Formula::~Formula | ( | ) |
This is the default Formula destructor.
| void Formula::Delete | ( | Keeper * | keeper | ) | const |
|
inline |
This will return the type of Formula class.
| void Formula::Inform | ( | Keeper * | keeper | ) |
| Formula::operator double | ( | ) | const |
| void Formula::setValue | ( | double | init | ) |
|
friend |
This operator will read data from a CommentStream into a Formula.
| infile | is the CommentStream to read from |
| F | is the Formula used to store the data |