Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

celx::ExecutionContext Class Reference

#include <execution.h>

Collaboration diagram for celx::ExecutionContext:

Collaboration graph
List of all members.

Public Member Functions

 ExecutionContext (Environment *)
EnvironmentgetEnvironment ()
Value popReturnValue ()
void pushReturnValue (const Value &)
void runtimeError ()
 ~ExecutionContext ()

Private Attributes

EnvironmentglobalEnv
Stack returnStack

Constructor & Destructor Documentation

ExecutionContext::ExecutionContext Environment  ) 
 

Definition at line 18 of file execution.cpp.

00018                                                    :
00019     globalEnv(env)
00020 {
00021 }

ExecutionContext::~ExecutionContext  ) 
 

Definition at line 24 of file execution.cpp.

00025 {
00026 }


Member Function Documentation

Environment * ExecutionContext::getEnvironment  ) 
 

Definition at line 29 of file execution.cpp.

References globalEnv.

00030 {
00031     return globalEnv;
00032 }

Value ExecutionContext::popReturnValue  ) 
 

Definition at line 41 of file execution.cpp.

References returnStack.

00042 {
00043     assert(!returnStack.empty());
00044     Value v = returnStack.back();
00045     returnStack.pop_back();
00046     return v;
00047 }

void ExecutionContext::pushReturnValue const Value  ) 
 

Definition at line 35 of file execution.cpp.

References returnStack.

00036 {
00037     returnStack.push_back(v);
00038 }

void celx::ExecutionContext::runtimeError  )  [inline]
 

Definition at line 30 of file execution.h.

00030 {};


Member Data Documentation

Environment* celx::ExecutionContext::globalEnv [private]
 

Definition at line 36 of file execution.h.

Referenced by getEnvironment().

Stack celx::ExecutionContext::returnStack [private]
 

Definition at line 37 of file execution.h.

Referenced by popReturnValue(), and pushReturnValue().


The documentation for this class was generated from the following files:
Generated on Sat Jan 14 22:33:44 2006 for Celestia by  doxygen 1.4.1