Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

skStackFrame Class Reference

This class stores info about the current stack frame - such the name of the current script and the line number being executed. More...

#include <skStackFrame.h>

List of all members.

Public Member Functions

 skStackFrame (const skString &location, skiExecutable *obj, skRValueTable &vars, skExecutableContext &context)
 Constructor.

skString getLocation () const
 returns the location of the code being executed in this stack frame

int getLineNum () const
 returns the current line number

void setLineNum (int line_num)
 updates the line number for the frame

skExecutableContextgetContext () const
 returns the context within which the stack frame is executing

skiExecutablegetObject () const
 returns the object owning the stack frame

skRValueTablegetVars () const
 returns the local variables for this stack frame

skStackFrame * getParentFrame () const
 returns the parent frame of this one

void setParentFrame (skStackFrame *frame)
 sets the parent frame of this frame


Detailed Description

This class stores info about the current stack frame - such the name of the current script and the line number being executed.

This class is used internally by the Interpreter, you do not normally need to use it.


Constructor & Destructor Documentation

skStackFrame::skStackFrame const skString location,
skiExecutable obj,
skRValueTable vars,
skExecutableContext context
 

Constructor.

Parameters:
location - the name of the source file
obj the object owning the script
vars the local variables at this part of the script
context context object to receive errors


Member Function Documentation

skExecutableContext & skStackFrame::getContext  )  const [inline]
 

returns the context within which the stack frame is executing

Returns:
the owning ExecutableContext

int skStackFrame::getLineNum  )  const [inline]
 

returns the current line number

Returns:
the current line number in the script

skString skStackFrame::getLocation  )  const [inline]
 

returns the location of the code being executed in this stack frame

Returns:
the current name of the script

skiExecutable * skStackFrame::getObject  )  const [inline]
 

returns the object owning the stack frame

Returns:
the owning object

skStackFrame * skStackFrame::getParentFrame  )  const [inline]
 

returns the parent frame of this one

Returns:
the StackFrame that called this one

skRValueTable & skStackFrame::getVars  )  const [inline]
 

returns the local variables for this stack frame

Returns:
the current local variables

void skStackFrame::setLineNum int  line_num  )  [inline]
 

updates the line number for the frame

Parameters:
line_num the new line number

void skStackFrame::setParentFrame skStackFrame *  frame  )  [inline]
 

sets the parent frame of this frame

Parameters:
frame set the parent stack frame


The documentation for this class was generated from the following files:
Generated on Fri Dec 17 20:27:35 2004 for Simkin by doxygen1.3