LOOS 4.1.0
The Lightweight Object Oriented Structural analysis library/toolkit
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
loos::internal::Action Class Referenceabstract

Base class for all commands... More...

#include <KernelActions.hpp>

Inheritance diagram for loos::internal::Action:
Inheritance graph
[legend]
Collaboration diagram for loos::internal::Action:
Collaboration graph
[legend]

Public Member Functions

 Action (const std::string s)
 
void setStack (ValueStack *)
 
void setAtom (pAtom &)
 
virtual std::string name (void) const
 
virtual void execute (void)=0
 

Protected Member Functions

int binComp (void)
 Compare the top two items on the stack...
 
bool negativeOperand (void)
 
void binaryFalseResult (void)
 
void requireAtom (void)
 Check to make sure an atom has been set...
 

Protected Attributes

ValueStackstack
 Pointer to the data stack.
 
pAtom atom
 Pointer to the atom we'll be working on...
 
std::string my_name
 Record of command-name (for printing)
 

Detailed Description

Base class for all commands...

All subclasses must implement the execute() method, which will operate on the data stack pointer.

Subclasses may also override the name() method if they want to augment the command-name string (i.e. to show additional internal data)


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