1 #ifndef addresskeeper_h
2 #define addresskeeper_h
21 :
addr(initial.
addr), name(new char[strlen(initial.name) + 1])
22 { strcpy(name, initial.name); };
60 name =
new char[strlen(str) + 1];
71 name =
new char[strlen(a.name) + 1];
79 const char*
getName()
const {
return name; };
This is the class used to store the name, and memory adddress, of the variables used in the model sim...
Definition: addresskeeper.h:10
AddressKeeper(const AddressKeeper &initial)
This is the AddressKeeper constructor that creates a copy of an existing AddressKeeper.
Definition: addresskeeper.h:20
int operator==(const double &value)
This operator will check to see if the address for the AddressKeeper is equal to an existing address.
Definition: addresskeeper.h:46
double * addr
This is the memory address where the value of the variable is stored.
Definition: addresskeeper.h:79
~AddressKeeper()
This is the default AddressKeeper destructor.
Definition: addresskeeper.h:26
AddressKeeper()
This is the default AddressKeeper constructor.
Definition: addresskeeper.h:15
const char * getName() const
This will return a null terminated text string containing the name of the stored variable.
Definition: addresskeeper.h:79
void operator=(double *address)
This operator will set the address of the AddressKeeper equal to an existing address.
Definition: addresskeeper.h:35