Gadget
|
This is the class used to store the name of a variable used in the model simulation. More...
#include <parameter.h>
Public Member Functions | |
Parameter () | |
This is the default Parameter constructor. More... | |
Parameter (const Parameter &p) | |
This is the Parameter constructor that creates a copy of an existing Parameter. More... | |
Parameter (char *value) | |
This is the Parameter constructor for a given string value. More... | |
~Parameter () | |
This is the default Parameter destructor. More... | |
char * | getName () const |
This function will return the name of the Parameter. More... | |
Parameter & | operator= (const Parameter &p) |
This operator will set the Parameter equal to an existing Parameter. More... | |
int | operator== (const Parameter &p) const |
This operator will check to see if the Parameter is equal to an existing Parameter. More... | |
int | isValidName (char *value) |
This function will check to see if the string that is going to be the name of the Parameter is valid or not. More... | |
Friends | |
CommentStream & | operator>> (CommentStream &infile, Parameter &p) |
This operator will read data from a CommentStream into a Parameter. More... | |
istream & | operator>> (istream &infile, Parameter &p) |
This operator will read data from a istream into a Parameter. More... | |
This is the class used to store the name of a variable used in the model simulation.
|
inline |
This is the default Parameter constructor.
Parameter::Parameter | ( | const Parameter & | p | ) |
Parameter::Parameter | ( | char * | value | ) |
Parameter::~Parameter | ( | ) |
This is the default Parameter destructor.
|
inline |
This function will return the name of the Parameter.
int Parameter::isValidName | ( | char * | value | ) |
This function will check to see if the string that is going to be the name of the Parameter is valid or not.
int Parameter::operator== | ( | const Parameter & | p | ) | const |
|
friend |
This operator will read data from a CommentStream into a Parameter.
infile | is the CommentStream to read from |
p | is the Parameter used to store the data |
|
friend |