CmdList Class Reference

#include <vm.h>

Inheritance diagram for CmdList:

Inheritance graph
[legend]
Collaboration diagram for CmdList:

Collaboration graph
[legend]

List of all members.


Detailed Description

sequence of executable virtual machine commands
Note:
Commands are executed in the same order as they are added.

Definition at line 245 of file vm.h.


Public Member Functions

 CmdList ()
virtual ~CmdList ()
virtual bool exec (FncDefinition *)
 execute command in the context of calling function
virtual void toStream (std::ostream &) const
 dump command to stream in human-readable format
void add (PCmd)
 add command to sequence

Private Attributes

Privated

Classes

struct  Private

Constructor & Destructor Documentation

CmdList (  ) 

Definition at line 479 of file vm.cc.

~CmdList (  )  [virtual]

Definition at line 483 of file vm.cc.

References d.


Member Function Documentation

bool exec ( FncDefinition  )  [virtual]

execute command in the context of calling function

Implements ICmd.

Definition at line 489 of file vm.cc.

References StreamDecorator::C_NO_COLOR, StreamDecorator::C_WHITE, d, ICmd::exec(), ICmd::toStream(), and CmdList::Private::vect.

Referenced by CallCmd::exec().

Here is the call graph for this function:

Here is the caller graph for this function:

void toStream ( std::ostream &   )  const [virtual]

dump command to stream in human-readable format

Implements ICmd.

Definition at line 506 of file vm.cc.

References StreamDecorator::C_LIGHT_GREEN, StreamDecorator::C_NO_COLOR, d, ICmd::toStream(), and CmdList::Private::vect.

Here is the call graph for this function:

void add ( PCmd  cmd  ) 

add command to sequence

Definition at line 486 of file vm.cc.

References d, and CmdList::Private::vect.


Member Data Documentation

Private* d [private]

Definition at line 255 of file vm.h.

Referenced by add(), exec(), toStream(), and ~CmdList().


The documentation for this class was generated from the following files:
Generated on Sat Jul 4 18:33:12 2009 for vyp08 (compiler and interpreter of VYP08 language) by  doxygen 1.5.4