amath
1.8.5
Simple command line calculator
|
A user defined variable. More...
#include <values.h>
Public Member Functions | |
Variable (const char *name) | |
~Variable () | |
char * | GetName () const |
Number * | GetValue () const |
void | AssignValue (Number *value) |
Public Attributes | |
Variable * | Next |
Private Attributes | |
char * | name |
Number * | value |
bool | chainDelete |
Friends | |
bool | VariableList::Delete (const char *name) |
|
explicit |
Definition at line 46 of file values.cpp.
References AllocAndCopy(), chainDelete, name, Next, and value.
Referenced by UserFunction::CreateVariable(), VariableList::CreateVariable(), and UserFunction::UserFunction().
Variable::~Variable | ( | ) |
void Variable::AssignValue | ( | Number * | value | ) |
Definition at line 79 of file values.cpp.
References Number::Clone(), and value.
Referenced by VariableNode::AssignValue(), UserFunctionNode::Evaluate(), and Grid::FunctionValue().
char * Variable::GetName | ( | ) | const |
Definition at line 69 of file values.cpp.
References name.
Referenced by VariableList::CreateVariable(), FunctionList::Delete(), FunctionList::GetFunctionDef(), VariableNode::GetNodeText(), VariableNode::GetText(), VariableList::GetVariable(), UserFunction::InitializeTexts(), FunctionList::ListContent(), and VariableList::ListContent().
Number * Variable::GetValue | ( | ) | const |
Definition at line 74 of file values.cpp.
References Number::Clone(), and value.
Referenced by VariableNode::Evaluate(), and VariableList::ListContent().
|
friend |
Referenced by DeleteStatement::Execute().
|
private |
Definition at line 91 of file values.h.
Referenced by VariableList::Delete(), Variable(), and ~Variable().
|
private |
Definition at line 89 of file values.h.
Referenced by GetName(), Variable(), and ~Variable().
Variable* Variable::Next |
Definition at line 86 of file values.h.
Referenced by VariableList::CreateVariable(), VariableList::Delete(), VariableList::GetVariable(), VariableList::InsertTemporaryVariable(), VariableList::ListContent(), VariableList::RemoveTemporaryVariable(), Variable(), and ~Variable().
|
private |
Definition at line 90 of file values.h.
Referenced by AssignValue(), GetValue(), Variable(), and ~Variable().