wrenbind17::VM::Data #
#include <vm.hpp>
Public Functions #
Name | |
---|---|
void | addClassType(const std::string & module, const std::string & name, const size_t hash) |
void | getClassType(std::string & module, std::string & name, const size_t hash) |
bool | isClassRegistered(const size_t hash) const |
void | addClassCast(std::shared_ptr< detail::ForeignPtrConvertor > convertor, const size_t hash, const size_t other) |
detail::ForeignPtrConvertor * | getClassCast(const size_t hash, const size_t other) |
std::string | getLastError() |
void | setNextError(std::string str) |
Public Attributes #
Name | |
---|---|
std::shared_ptr< WrenVM > | vm |
WrenConfiguration | config |
std::vector< std::string > | paths |
std::unordered_map< std::string, ForeignModule > | modules |
std::unordered_map< size_t, std::string > | classToModule |
std::unordered_map< size_t, std::string > | classToName |
std::unordered_map< std::pair< size_t, size_t >, std::shared_ptr< detail::ForeignPtrConvertor > > | classCasting |
std::string | lastError |
std::string | nextError |
PrintFn | printFn |
LoadFileFn | loadFileFn |
Public Functions Documentation #
function addClassType #
inline void addClassType(
const std::string & module,
const std::string & name,
const size_t hash
)
function getClassType #
inline void getClassType(
std::string & module,
std::string & name,
const size_t hash
)
function isClassRegistered #
inline bool isClassRegistered(
const size_t hash
) const
function addClassCast #
inline void addClassCast(
std::shared_ptr< detail::ForeignPtrConvertor > convertor,
const size_t hash,
const size_t other
)
function getClassCast #
inline detail::ForeignPtrConvertor * getClassCast(
const size_t hash,
const size_t other
)
function getLastError #
inline std::string getLastError()
function setNextError #
inline void setNextError(
std::string str
)
Public Attributes Documentation #
variable vm #
std::shared_ptr< WrenVM > vm;
variable config #
WrenConfiguration config;
variable paths #
std::vector< std::string > paths;
variable modules #
std::unordered_map< std::string, ForeignModule > modules;
variable classToModule #
std::unordered_map< size_t, std::string > classToModule;
variable classToName #
std::unordered_map< size_t, std::string > classToName;
variable classCasting #
std::unordered_map< std::pair< size_t, size_t >, std::shared_ptr< detail::ForeignPtrConvertor > > classCasting;
variable lastError #
std::string lastError;
variable nextError #
std::string nextError;
variable printFn #
PrintFn printFn;
variable loadFileFn #
LoadFileFn loadFileFn;
Updated on 17 October 2023 at 12:26:25 UTC