Gadget
|
This is the class used to calculate the value of the time-dependent variables used in the model simulation. More...
#include <timevariable.h>
Public Member Functions | |
TimeVariable () | |
This is the default TimeVariable constructor. More... | |
~TimeVariable () | |
This is the default TimeVariable destructor. More... | |
void | read (CommentStream &infile, const TimeClass *const TimeInfo, Keeper *const keeper) |
This function will read TimeVariable data from file. More... | |
double | getValue () const |
This function will return the value of the TimeVariable. More... | |
void | Interchange (TimeVariable &newTV, Keeper *const keeper) const |
This function will swap the TimeVariable value for a new value. More... | |
void | Update (const TimeClass *const TimeInfo) |
This function will update the TimeVariable value. More... | |
void | Delete (Keeper *const keeper) const |
This function will delete a TimeVariable value. More... | |
int | didChange (const TimeClass *const TimeInfo) |
This function will check to see if the TimeVariable value has changed. More... | |
This is the class used to calculate the value of the time-dependent variables used in the model simulation.
|
inline |
This is the default TimeVariable constructor.
|
inline |
This is the default TimeVariable destructor.
void TimeVariable::Delete | ( | Keeper *const | keeper | ) | const |
This function will delete a TimeVariable value.
keeper | is the Keeper for the current model |
int TimeVariable::didChange | ( | const TimeClass *const | TimeInfo | ) |
This function will check to see if the TimeVariable value has changed.
TimeInfo | is the TimeClass for the current model |
|
inline |
This function will return the value of the TimeVariable.
void TimeVariable::Interchange | ( | TimeVariable & | newTV, |
Keeper *const | keeper | ||
) | const |
This function will swap the TimeVariable value for a new value.
newTV | is the new TimeVariable value |
keeper | is the Keeper for the current model |
void TimeVariable::read | ( | CommentStream & | infile, |
const TimeClass *const | TimeInfo, | ||
Keeper *const | keeper | ||
) |
This function will read TimeVariable data from file.
infile | is the CommentStream to read the data from |
TimeInfo | is the TimeClass for the current model |
keeper | is the Keeper for the current model |
void TimeVariable::Update | ( | const TimeClass *const | TimeInfo | ) |
This function will update the TimeVariable value.
TimeInfo | is the TimeClass for the current model |