LOOS  v2.3.2
loos::internal::Action Class Referenceabstract

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

#include <KernelActions.hpp>

Inheritance diagram for loos::internal::Action:
Collaboration diagram for loos::internal::Action:

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

 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)

Definition at line 67 of file KernelActions.hpp.

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