2005/5/9

     
 

class ExecutionStack

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::cfgscript::ExecutionStack Class Reference

#include <ExecutionStack.h>

Inheritance diagram for acdk::cfgscript::ExecutionStack:

acdk::lang::Object acdk::lang::dmi::MetaObjectListener acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Public Member Functions

 ExecutionStack ()
 ~ExecutionStack ()
int push (IN(RExecutionStackFrame) st)
void pop ()
void pop (int idx)
 OUT (RExecutionStackFrame) top()
 may return null if called directly from native

RString getScriptBackTrace (bool withLocals, bool withSourcePos)
void breakToDebug ()
void addDbgFlag (int flag)
void removeDbgFlag (int flag)
RExecutionStackFrame getFrameFromTop (int idx)
 0 is top

RExecutionStackFrameArray getFrames ()
void startTransMetaInfo (int flags)
void rollbackMetaInfo ()
 after finished execution this method resets the stack and deregister all tempory _registeredMetaInfo

virtual void onRegister (IN(acdk::lang::dmi::RMetaObject) metaObject)
 implementation for MetaObjectListener

virtual void onUnregister (IN(acdk::lang::dmi::RMetaObject) metaObject)

Static Public Member Functions

RExecutionStack get ()
void setCurrentTokenIndex (int index)
bool throwOnFail ()
 OUT (RExecutionStackFrame) getTop()
int getCurrentTokenIndex ()
int getDebugFlags ()
void setDebugFlags (int flags)

Public Attributes

bool _throwOnFail
 Throw exception on failure default is true.

int _debugFlags
 combination of DebugFlags

RExecutionStackFrame _nullFrame
acdk::lang::dmi::RMetaObjectArray _registeredMetaInfo

Protected Member Functions

bool calledByConstructor ()

Private Attributes

RExecutionStackFrameArray _executeStack

Constructor & Destructor Documentation

acdk::cfgscript::ExecutionStack::ExecutionStack  )  [inline]
 

acdk::cfgscript::ExecutionStack::~ExecutionStack  ) 
 


Member Function Documentation

void acdk::cfgscript::ExecutionStack::addDbgFlag int  flag  )  [inline]
 

void acdk::cfgscript::ExecutionStack::breakToDebug  )  [inline]
 

bool acdk::cfgscript::ExecutionStack::calledByConstructor  )  [inline, protected]
 

RExecutionStack acdk::cfgscript::ExecutionStack::get  )  [static]
 

int acdk::cfgscript::ExecutionStack::getCurrentTokenIndex  )  [inline, static]
 

int acdk::cfgscript::ExecutionStack::getDebugFlags  )  [inline, static]
 

RExecutionStackFrame acdk::cfgscript::ExecutionStack::getFrameFromTop int  idx  )  [inline]
 

0 is top

Returns:
Nil if out of bounds

RExecutionStackFrameArray acdk::cfgscript::ExecutionStack::getFrames  )  [inline]
 

RString acdk::cfgscript::ExecutionStack::getScriptBackTrace bool  withLocals,
bool  withSourcePos
 

virtual void acdk::cfgscript::ExecutionStack::onRegister IN(acdk::lang::dmi::RMetaObject metaObject  )  [virtual]
 

implementation for MetaObjectListener

virtual void acdk::cfgscript::ExecutionStack::onUnregister IN(acdk::lang::dmi::RMetaObject metaObject  )  [virtual]
 

acdk::cfgscript::ExecutionStack::OUT RExecutionStackFrame   )  [inline, static]
 

acdk::cfgscript::ExecutionStack::OUT RExecutionStackFrame   )  [inline]
 

may return null if called directly from native

void acdk::cfgscript::ExecutionStack::pop int  idx  )  [inline]
 

void acdk::cfgscript::ExecutionStack::pop  )  [inline]
 

int acdk::cfgscript::ExecutionStack::push IN(RExecutionStackFrame st  )  [inline]
 

void acdk::cfgscript::ExecutionStack::removeDbgFlag int  flag  )  [inline]
 

void acdk::cfgscript::ExecutionStack::rollbackMetaInfo  ) 
 

after finished execution this method resets the stack and deregister all tempory _registeredMetaInfo

void acdk::cfgscript::ExecutionStack::setCurrentTokenIndex int  index  )  [inline, static]
 

void acdk::cfgscript::ExecutionStack::setDebugFlags int  flags  )  [inline, static]
 

void acdk::cfgscript::ExecutionStack::startTransMetaInfo int  flags  ) 
 

bool acdk::cfgscript::ExecutionStack::throwOnFail  )  [inline, static]
 


Member Data Documentation

int acdk::cfgscript::ExecutionStack::_debugFlags
 

combination of DebugFlags

RExecutionStackFrameArray acdk::cfgscript::ExecutionStack::_executeStack [private]
 

RExecutionStackFrame acdk::cfgscript::ExecutionStack::_nullFrame
 

acdk::lang::dmi::RMetaObjectArray acdk::cfgscript::ExecutionStack::_registeredMetaInfo
 

bool acdk::cfgscript::ExecutionStack::_throwOnFail
 

Throw exception on failure default is true.