|
amath
1.8.5
Simple command line calculator
|
Delete variable or function. More...
#include <delete.h>


Public Member Functions | |
| DeleteStatement (Symbol symbol) | |
| Constructor used to delete either all variable or functions. More... | |
| DeleteStatement (const char *name) | |
| Constructor used to delete a Variable. More... | |
| DeleteStatement (const char *name, const char *argument) | |
| Constructor used to delete a function. More... | |
| ~DeleteStatement () | |
| char * | Execute () |
Public Member Functions inherited from StatementNode | |
| StatementNode () | |
| StatementNode (const char *text) | |
| virtual | ~StatementNode () |
| NodeType | GetNodeType () |
| virtual SyntaxNode * | GetNext () |
| virtual char * | GetTextCode () |
| void | Attach (SyntaxNode *node) |
| void | Detach (SyntaxNode *node) |
| void | Replace (SyntaxNode *n, SyntaxNode *x) |
Public Member Functions inherited from SyntaxNode | |
| SyntaxNode () | |
| virtual | ~SyntaxNode () |
| void | SetFirstNode () |
| bool | GetFirstNode () const |
| SyntaxNode * | GetParent () const |
| void | SetParent (SyntaxNode *node) |
| virtual ReductionType | GetReductionType () |
| virtual void | ResetIterator () |
Private Attributes | |
| Symbol | type |
| char * | name |
| char * | argument |
Additional Inherited Members | |
Protected Attributes inherited from StatementNode | |
| char * | statementText |
Protected Attributes inherited from SyntaxNode | |
| CharBuffer * | output |
| SyntaxNode * | parent |
| SyntaxNode * | iterator |
| bool | leftBottom |
|
explicit |
Constructor used to delete either all variable or functions.
Definition at line 40 of file delete.cpp.
References argument, name, StatementNode::StatementNode(), and type.
Referenced by Parser::ParseDeleteStatement().


|
explicit |
Constructor used to delete a Variable.
Definition at line 52 of file delete.cpp.
References AllocAndCopy(), argument, name, StatementNode::StatementNode(), symvariable, and type.
Referenced by Parser::ParseDeleteStatement().


| DeleteStatement::DeleteStatement | ( | const char * | name, |
| const char * | argument | ||
| ) |
Constructor used to delete a function.
Definition at line 64 of file delete.cpp.
References AllocAndCopy(), argument, name, StatementNode::StatementNode(), symfunction, and type.
Referenced by Parser::ParseDeleteStatement().


| DeleteStatement::~DeleteStatement | ( | ) |
|
virtual |
Implements StatementNode.
Definition at line 86 of file delete.cpp.
References CharBuffer::Append(), argument, FunctionList::Clear(), VariableList::Clear(), FunctionList::Delete(), CharBuffer::Empty(), CharBuffer::EnsureSize(), Program::Functions, CharBuffer::GetString(), name, SyntaxNode::output, StatementNode::statementText, StrLen(), symfunction, symvariable, type, Variable::VariableList::Delete, and Program::Variables.

|
private |
Definition at line 51 of file delete.h.
Referenced by DeleteStatement(), Execute(), and ~DeleteStatement().
|
private |
Definition at line 50 of file delete.h.
Referenced by DeleteStatement(), Execute(), and ~DeleteStatement().
|
private |
Definition at line 49 of file delete.h.
Referenced by DeleteStatement(), and Execute().