amath  1.8.5
Simple command line calculator
ListVariablesStatement Class Reference

Statement to list all user defined variables. More...

#include <values.h>

Inheritance diagram for ListVariablesStatement:
Collaboration diagram for ListVariablesStatement:

Public Member Functions

 ListVariablesStatement ()
 
char * Execute ()
 
- Public Member Functions inherited from StatementNode
 StatementNode ()
 
 StatementNode (const char *text)
 
virtual ~StatementNode ()
 
NodeType GetNodeType ()
 
virtual SyntaxNodeGetNext ()
 
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
 
SyntaxNodeGetParent () const
 
void SetParent (SyntaxNode *node)
 
virtual ReductionType GetReductionType ()
 
virtual void ResetIterator ()
 

Additional Inherited Members

- Protected Attributes inherited from StatementNode
char * statementText
 
- Protected Attributes inherited from SyntaxNode
CharBufferoutput
 
SyntaxNodeparent
 
SyntaxNodeiterator
 
bool leftBottom
 

Detailed Description

Statement to list all user defined variables.

Definition at line 99 of file values.h.

Constructor & Destructor Documentation

◆ ListVariablesStatement()

ListVariablesStatement::ListVariablesStatement ( )

Definition at line 279 of file values.cpp.

References StatementNode::StatementNode().

Referenced by Parser::ParseStatement().

280  : StatementNode()
281 {
282 }
StatementNode()
Definition: node.cpp:34
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ Execute()

char * ListVariablesStatement::Execute ( )
virtual

Implements StatementNode.

Definition at line 284 of file values.cpp.

References VariableList::List(), and Program::Variables.

285 {
286  return Program->Variables->List();
287 }
Master control class.
Definition: program.h:55
class VariableList * Variables
Definition: program.h:77
char * List() const
Definition: values.cpp:218
Here is the call graph for this function:

The documentation for this class was generated from the following files: