ug4
ug::bridge::LUACompiler Class Reference

#include <lua_compiler.h>

Public Member Functions

bool call (double *ret, const double *in) const
 
bool create (const char *functionName, LuaFunctionHandle *pHandle=nullptr)
 
bool createC (const char *functionName, LuaFunctionHandle *pHandle=nullptr)
 
bool createVM (const char *functionName, LuaFunctionHandle *pHandle=nullptr)
 
bool is_valid () const
 
 LUACompiler ()
 
const std::string & name () const
 
int num_in () const
 
int num_out () const
 
virtual ~LUACompiler ()
 

Public Attributes

bool bInitialized
 
bool bVM
 
LUA2C_Function m_f
 
int m_iIn
 
int m_iOut
 
std::string m_name
 

Private Types

typedef int(* LUA2C_Function) (double *, const double *)
 

Private Attributes

DynLibHandle m_libHandle
 
std::string m_pDyn
 
VMAddvm
 

Member Typedef Documentation

◆ LUA2C_Function

typedef int(* ug::bridge::LUACompiler::LUA2C_Function) (double *, const double *)
private

Constructor & Destructor Documentation

◆ LUACompiler()

ug::bridge::LUACompiler::LUACompiler ( )
inline

References bInitialized, bVM, m_f, m_libHandle, m_name, m_pDyn, and vm.

◆ ~LUACompiler()

ug::bridge::LUACompiler::~LUACompiler ( )
virtual

Member Function Documentation

◆ call()

bool ug::bridge::LUACompiler::call ( double *  ret,
const double *  in 
) const

◆ create()

bool ug::bridge::LUACompiler::create ( const char *  functionName,
LuaFunctionHandle pHandle = nullptr 
)

References ug::useLua2VM.

◆ createC()

◆ createVM()

bool ug::bridge::LUACompiler::createVM ( const char *  functionName,
LuaFunctionHandle pHandle = nullptr 
)

◆ is_valid()

bool ug::bridge::LUACompiler::is_valid ( ) const
inline

References bInitialized.

◆ name()

const std::string& ug::bridge::LUACompiler::name ( ) const
inline

◆ num_in()

int ug::bridge::LUACompiler::num_in ( ) const
inline

References m_iIn.

◆ num_out()

int ug::bridge::LUACompiler::num_out ( ) const
inline

Member Data Documentation

◆ bInitialized

bool ug::bridge::LUACompiler::bInitialized

Referenced by is_valid(), and LUACompiler().

◆ bVM

bool ug::bridge::LUACompiler::bVM

Referenced by LUACompiler().

◆ m_f

LUA2C_Function ug::bridge::LUACompiler::m_f

Referenced by LUACompiler().

◆ m_iIn

int ug::bridge::LUACompiler::m_iIn

Referenced by num_in().

◆ m_iOut

int ug::bridge::LUACompiler::m_iOut

Referenced by num_out().

◆ m_libHandle

DynLibHandle ug::bridge::LUACompiler::m_libHandle
private

Referenced by LUACompiler().

◆ m_name

std::string ug::bridge::LUACompiler::m_name

Referenced by LUACompiler(), and name().

◆ m_pDyn

std::string ug::bridge::LUACompiler::m_pDyn
private

Referenced by LUACompiler().

◆ vm

VMAdd* ug::bridge::LUACompiler::vm
private

Referenced by LUACompiler().


The documentation for this class was generated from the following files: