Skip to content

api/lua.h

Namespaces

Name
sol
cvedia
cvedia::rt
API for controlling the server and lifecycle management of runtime instances.
cvedia::rt::iface
cvedia::rt::api
cvedia::rt::api::lua

Functions

Name
CValue fromSolObject(sol::object const & obj)
CValue _fromSolObject(sol::object const & obj, int & cnt)
sol::object toSolObject(CValue const & obj, sol::state & lua)
sol::object _toSolObject(CValue const & obj, sol::state & lua, int & cnt)
sol::object _convertAndMakeObject(CValue const & val, sol::state & lua, int & cnt)
sol::object toSolObject(CValue const & obj, lua_State * lua_)
std::vector< std::vector< float > > getShapeFromSolTable(sol::table const & table)
sol::table getSolTable(lua_State * lua, std::vector< int > const & values)
sol::table getSolTable(lua_State * lua, std::vector< float > const & values)
sol::table getSolTable(lua_State * lua, std::vector< std::string > const & values)
std::shared_ptr< cvedia::rt::iface::ScriptEngine > getLuaEngine()
void setLuaHelper(std::shared_ptr< cvedia::rt::iface::ScriptEngine > helper)
std::shared_ptr< cvedia::rt::iface::ScriptEngine > getLuaUI()
void setLuaUI(std::shared_ptr< cvedia::rt::iface::ScriptEngine > helper)
bool * enable_lua_profiler_ptr()

Functions Documentation

function fromSolObject

CValue fromSolObject(
    sol::object const & obj
)

function _fromSolObject

CValue _fromSolObject(
    sol::object const & obj,
    int & cnt
)

function toSolObject

sol::object toSolObject(
    CValue const & obj,
    sol::state & lua
)

function _toSolObject

sol::object _toSolObject(
    CValue const & obj,
    sol::state & lua,
    int & cnt
)

function _convertAndMakeObject

sol::object _convertAndMakeObject(
    CValue const & val,
    sol::state & lua,
    int & cnt
)

function toSolObject

sol::object toSolObject(
    CValue const & obj,
    lua_State * lua_
)

function getShapeFromSolTable

std::vector< std::vector< float > > getShapeFromSolTable(
    sol::table const & table
)

function getSolTable

sol::table getSolTable(
    lua_State * lua,
    std::vector< int > const & values
)

function getSolTable

sol::table getSolTable(
    lua_State * lua,
    std::vector< float > const & values
)

function getSolTable

sol::table getSolTable(
    lua_State * lua,
    std::vector< std::string > const & values
)

function getLuaEngine

std::shared_ptr< cvedia::rt::iface::ScriptEngine > getLuaEngine()

function setLuaHelper

void setLuaHelper(
    std::shared_ptr< cvedia::rt::iface::ScriptEngine > helper
)

function getLuaUI

std::shared_ptr< cvedia::rt::iface::ScriptEngine > getLuaUI()

function setLuaUI

void setLuaUI(
    std::shared_ptr< cvedia::rt::iface::ScriptEngine > helper
)

function enable_lua_profiler_ptr

bool * enable_lua_profiler_ptr()