|
Bond 0.9
C++ Bond Runtime Library API Documentation
|
#include <bond/vm/vm.h>
Public Member Functions | |
| VM (Allocator &allocator, const CodeSegment &codeSegment, size_t stackSize, InputStream *stdIn=nullptr, OutputStream *stdOut=nullptr, OutputStream *stdErr=nullptr, StreamFactory *streamFactory=nullptr) | |
| ~VM () | |
| Allocator & | GetAllocator () const |
| const CodeSegment & | GetCodeSegment () const |
| StackFrame * | GetStackFrame () |
| const StackFrame & | GetStackFrame () const |
| StackFrame & | GetCallerStackFrame () |
| const StackFrame & | GetCallerStackFrame () const |
| InputStreamAdaptor & | GetStdIn () |
| OutputStreamAdaptor & | GetStdOut () |
| OutputStreamAdaptor & | GetStdErr () |
| StreamFactory * | GetStreamFactory () |
| void | DumpCallStack (OutputStream &stream) const |
| void | DumpStackFrame (OutputStream &stream, const StackFrame &frame) const |
| void | RaiseError (const char *format,...) const |
| template<typename ReturnType, typename... Args> | |
| void | CallFunction (const QualifiedName &functionName, ReturnType *returnAddress, Args... args) |
| template<typename ReturnType, typename... Args> | |
| void | CallFunction (const char *functionName, ReturnType *returnAddress, Args... args) |
| template<typename ReturnType, typename... Args> | |
| void | CallFunction (const Function &function, ReturnType *returnAddress, Args... args) |
| template<typename... Args> | |
| void | CallVoidFunction (const QualifiedName &functionName, Args... args) |
| template<typename... Args> | |
| void | CallVoidFunction (const char *functionName, Args... args) |
| template<typename... Args> | |
| void | CallVoidFunction (const Function &function, Args... args) |
| VM & | operator= (const VM &other)=delete |
Friends | |
| class | InvocationStackFrame |
| Bond::VM::VM | ( | Allocator & | allocator, |
| const CodeSegment & | codeSegment, | ||
| size_t | stackSize, | ||
| InputStream * | stdIn = nullptr, | ||
| OutputStream * | stdOut = nullptr, | ||
| OutputStream * | stdErr = nullptr, | ||
| StreamFactory * | streamFactory = nullptr ) |
| Bond::VM::~VM | ( | ) |
| void Bond::VM::CallFunction | ( | const char * | functionName, |
| ReturnType * | returnAddress, | ||
| Args... | args ) |
| void Bond::VM::CallFunction | ( | const Function & | function, |
| ReturnType * | returnAddress, | ||
| Args... | args ) |
| void Bond::VM::CallFunction | ( | const QualifiedName & | functionName, |
| ReturnType * | returnAddress, | ||
| Args... | args ) |
| void Bond::VM::CallVoidFunction | ( | const char * | functionName, |
| Args... | args ) |
| void Bond::VM::CallVoidFunction | ( | const Function & | function, |
| Args... | args ) |
| void Bond::VM::CallVoidFunction | ( | const QualifiedName & | functionName, |
| Args... | args ) |
| void Bond::VM::DumpCallStack | ( | OutputStream & | stream | ) | const |
| void Bond::VM::DumpStackFrame | ( | OutputStream & | stream, |
| const StackFrame & | frame ) const |
|
inline |
| StackFrame & Bond::VM::GetCallerStackFrame | ( | ) |
| const StackFrame & Bond::VM::GetCallerStackFrame | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void Bond::VM::RaiseError | ( | const char * | format, |
| ... ) const |
|
friend |