SymbolTable Class

Definition

Line 6 of Calculator/SymbolTable.cm

Constructors & Destructor

static SymbolTable()
private SymbolTable()

Member Functions

public double GetVariableValue(const String<uchar>& variableName)
public static SymbolTable& Instance()
public void Print()
public void SetVariable(const String<uchar>& variableName, double variableValue)

Member Variables

private static UniquePtr<SymbolTable> instance
private Map<String<uchar>, double, Less<String<uchar>>> variableMap

Constructor& Destructor Details

SymbolTable Static Constructor

static SymbolTable()

Definition
Line 8 of Calculator/SymbolTable.cm


SymbolTable Constructor

private SymbolTable()

Definition
Line 15 of Calculator/SymbolTable.cm


Member Function Details

GetVariableValue Member Function

public double GetVariableValue(const String<uchar>& variableName)

Definition
Line 22 of Calculator/SymbolTable.cm


Instance Static Member Function

public static SymbolTable& Instance()

Definition
Line 11 of Calculator/SymbolTable.cm


Print Member Function

public void Print()

Definition
Line 35 of Calculator/SymbolTable.cm


SetVariable Member Function

public void SetVariable(const String<uchar>& variableName, double variableValue)

Definition
Line 18 of Calculator/SymbolTable.cm