| public |
Inheritance Graph
graph BT
Runtime
Runtime --> ExtObject
click Runtime "classEScript_1_1Runtime"
click ExtObject "classEScript_1_1ExtObject"
Description
| [ Runtime ] | > [ ExtObject ] |
Main
| Runtime() | |
| ~Runtime() |
Variables
| Namespace * | getGlobals() const |
| bool | assignToAttribute( ObjPtr obj, StringId attrId, ObjPtr value) |
Execution
| ObjPtr | getCallingObject() const |
| ObjRef | executeFunction(const ObjPtr & fun, const ObjPtr & callingObject, const ParameterValues & params) |
| ObjRef | createInstance(const EPtr < Type > & type, const ParameterValues & params) |
| void | yieldNext( YieldIterator & yIt) |
| size_t | getStackSize() const |
| size_t | _getStackSizeLimit() const |
| void | _setStackSizeLimit(const size_t limit) |
Internal state / Exceptions
| DEPRECATED bool | assertNormalState() const |
| void | info(const std::string & s) |
| void | warn(const std::string & s) |
| ObjRef | fetchAndClearExitResult() |
| bool | checkNormalState() const |
| void | setException(const std::string & s) |
| void | setException( Exception * e) |
| void | _setExceptionState( ObjRef e) (internal) Like ‘setException’ but does NOT annotate the given exception but just uses it. |
| void | _setExitState( ObjRef e) (internal) |
| void | throwException(const std::string & s, Object * obj) |
Debugging
| void | enableLogCounting() |
| void | disableLogCounting() |
| std::string | getCurrentFile() const |
| int | getCurrentLine() const |
| uint32_t | getLogCounter( Logger::level_t level) const |
| LoggerGroup * | getLogger() const |
| Logger::level_t | getLoggingLevel() |
| std::string | getStackInfo() |
| std::string | getLocalStackInfo() |
| void | log( Logger::level_t l, const std::string & s) |
| void | resetLogCounter( Logger::level_t level) |
| void | setAddStackInfoToExceptions(bool b) |
| void | setLoggingLevel( Logger::level_t level) |
| void | setTreatWarningsAsError(bool b) |
Public Static Functions
| Type * | getTypeObject() |
| void | init( EScript::Namespace & globals) |
Documentation
function
EScript::Runtime::Runtime
| public |
| Runtime( | ) |
Defined in EScript/EScript/Runtime/Runtime.h:52
function
EScript::Runtime::~Runtime
| public | virtual |
| ~Runtime( | ) |
Defined in EScript/EScript/Runtime/Runtime.h:53
function
EScript::Runtime::getGlobals
| public | const |
| Namespace * getGlobals( | ) const |
Defined in EScript/EScript/Runtime/Runtime.h:61
function
EScript::Runtime::assignToAttribute
| public |
| bool assignToAttribute( | ObjPtr | obj, |
| StringId | attrId, | |
| ObjPtr | value | |
| ) |
Defined in EScript/EScript/Runtime/Runtime.h:63
function
EScript::Runtime::getCallingObject
| public | const |
| ObjPtr getCallingObject( | ) const |
Defined in EScript/EScript/Runtime/Runtime.h:71
function
EScript::Runtime::executeFunction
| public |
| ObjRef executeFunction( | const ObjPtr & | fun, |
| const ObjPtr & | callingObject, | |
| const ParameterValues & | params | |
| ) |
Note: throws an exception ( Object *) on failure
Defined in EScript/EScript/Runtime/Runtime.h:74
function
EScript::Runtime::createInstance
| public |
| ObjRef createInstance( | const EPtr < Type > & | type, |
| const ParameterValues & | params | |
| ) |
Note: throws an exception ( Object *) on failure
Defined in EScript/EScript/Runtime/Runtime.h:77
function
EScript::Runtime::yieldNext
| public |
| void yieldNext( | YieldIterator & | yIt ) |
Note: throws an exception ( Object *) on failure
Defined in EScript/EScript/Runtime/Runtime.h:80
function
EScript::Runtime::getStackSize
| public | const |
| size_t getStackSize( | ) const |
Defined in EScript/EScript/Runtime/Runtime.h:82
function
EScript::Runtime::_getStackSizeLimit
| public | const |
| size_t _getStackSizeLimit( | ) const |
Defined in EScript/EScript/Runtime/Runtime.h:83
function
EScript::Runtime::_setStackSizeLimit
| public |
| void _setStackSizeLimit( | const size_t | limit ) |
Defined in EScript/EScript/Runtime/Runtime.h:84
function
EScript::Runtime::assertNormalState
| public | const |
| DEPRECATED bool assertNormalState( | ) const |
Defined in EScript/EScript/Runtime/Runtime.h:92
function
EScript::Runtime::info
| public |
| void info( | const std::string & | s ) |
Defined in EScript/EScript/Runtime/Runtime.h:94
function
EScript::Runtime::warn
| public |
| void warn( | const std::string & | s ) |
Defined in EScript/EScript/Runtime/Runtime.h:95
function
EScript::Runtime::fetchAndClearExitResult
| public |
| ObjRef fetchAndClearExitResult( | ) |
Defined in EScript/EScript/Runtime/Runtime.h:97
function
EScript::Runtime::checkNormalState
| public | const |
| bool checkNormalState( | ) const |
Defined in EScript/EScript/Runtime/Runtime.h:99
function
EScript::Runtime::setException
| public |
| void setException( | const std::string & | s ) |
Creates an exception object including current stack info and sets the internal state to STATE_EXCEPTION. Does NOT throw a C++ exception.
Defined in EScript/EScript/Runtime/Runtime.h:103
function
EScript::Runtime::setException
| public |
| void setException( | Exception * | e ) |
Annotates the given Exception with the current stack info and set the internal state to STATE_EXCEPTION. Does NOT throw a C++ exception.
Defined in EScript/EScript/Runtime/Runtime.h:107
function
EScript::Runtime::_setExceptionState
| public |
| void _setExceptionState( | ObjRef | e ) |
(internal) Like ‘setException’ but does NOT annotate the given exception but just uses it.
Defined in EScript/EScript/Runtime/Runtime.h:110
function
EScript::Runtime::_setExitState
| public |
| void _setExitState( | ObjRef | e ) |
(internal)
Defined in EScript/EScript/Runtime/Runtime.h:113
function
EScript::Runtime::throwException
| public |
| void throwException( | const std::string & | s, |
| Object * | obj | |
| ) |
Throws a runtime exception (a C++ Exception , not an internal one!). Should only be used inside of library-functions (otherwise, they are not handled and the program is likely to crash). In all other situations try to use setException(…)
Defined in EScript/EScript/Runtime/Runtime.h:121
function
EScript::Runtime::enableLogCounting
| public |
| void enableLogCounting( | ) |
Defined in EScript/EScript/Runtime/Runtime.h:129
function
EScript::Runtime::disableLogCounting
| public |
| void disableLogCounting( | ) |
Defined in EScript/EScript/Runtime/Runtime.h:130
function
EScript::Runtime::getCurrentFile
| public | const |
| std::string getCurrentFile( | ) const |
Defined in EScript/EScript/Runtime/Runtime.h:132
function
EScript::Runtime::getCurrentLine
| public | const |
| int getCurrentLine( | ) const |
Defined in EScript/EScript/Runtime/Runtime.h:133
function
EScript::Runtime::getLogCounter
| public | const |
| uint32_t getLogCounter( | Logger::level_t | level ) const |
Defined in EScript/EScript/Runtime/Runtime.h:134
function
EScript::Runtime::getLogger
| public | const | inline |
| LoggerGroup * getLogger( | ) const |
Defined in EScript/EScript/Runtime/Runtime.h:135
function
EScript::Runtime::getLoggingLevel
| public | inline |
| Logger::level_t getLoggingLevel( | ) |
Defined in EScript/EScript/Runtime/Runtime.h:136
function
EScript::Runtime::getStackInfo
| public |
| std::string getStackInfo( | ) |
Defined in EScript/EScript/Runtime/Runtime.h:137
function
EScript::Runtime::getLocalStackInfo
| public |
| std::string getLocalStackInfo( | ) |
Defined in EScript/EScript/Runtime/Runtime.h:138
function
EScript::Runtime::log
| public | inline |
| void log( | Logger::level_t | l, |
| const std::string & | s | |
| ) |
Defined in EScript/EScript/Runtime/Runtime.h:140
function
EScript::Runtime::resetLogCounter
| public |
| void resetLogCounter( | Logger::level_t | level ) |
Defined in EScript/EScript/Runtime/Runtime.h:141
function
EScript::Runtime::setAddStackInfoToExceptions
| public |
| void setAddStackInfoToExceptions( | bool | b ) |
Defined in EScript/EScript/Runtime/Runtime.h:143
function
EScript::Runtime::setLoggingLevel
| public | inline |
| void setLoggingLevel( | Logger::level_t | level ) |
Defined in EScript/EScript/Runtime/Runtime.h:144
function
EScript::Runtime::setTreatWarningsAsError
| public |
| void setTreatWarningsAsError( | bool | b ) |
Defined in EScript/EScript/Runtime/Runtime.h:145
function
EScript::Runtime::getTypeObject
| public | static |
| Type * getTypeObject( | ) |
Defined in EScript/EScript/Runtime/Runtime.h:42
function
EScript::Runtime::init
| public | static |
| void init( | EScript::Namespace & | globals ) |
Defined in EScript/EScript/Runtime/Runtime.h:43