Covalent Bond  0.0.1-alpha
'covalent bond' is a data middle office. As a 2022-2023 Fall SWE final project.
Public Member Functions | Private Attributes | List of all members
cb::graph::cbGraphSharedLuaStack Struct Reference

#include <cbComputeGraph.hpp>

Collaboration diagram for cb::graph::cbGraphSharedLuaStack:
Collaboration graph
[legend]

Public Member Functions

 cbGraphSharedLuaStack ()=default
 Construct a new cb Graph Shared Lua Stack object. More...
 
 cbGraphSharedLuaStack (const cbGraphSharedLuaStack &)=delete
 Construct a new cb Graph Shared Lua Stack object using const cbGraphSharedLuaStack& is deleted. More...
 
cbGraphSharedLuaStack operator= (const cbGraphSharedLuaStack &)=delete
 operator of const = is deleted More...
 
void execScriptFile (const std::string &filePath)
 execute the script file from disk directly. More...
 
void execScript (const std::string &script)
 execute the hard coded script. More...
 
luaJitThreadget ()
 get the lua state. More...
 

Private Attributes

luaJitThread m_lua
 

Detailed Description

Definition at line 170 of file cbComputeGraph.hpp.

Constructor & Destructor Documentation

◆ cbGraphSharedLuaStack() [1/2]

cb::graph::cbGraphSharedLuaStack::cbGraphSharedLuaStack ( )
default

Construct a new cb Graph Shared Lua Stack object.

◆ cbGraphSharedLuaStack() [2/2]

cb::graph::cbGraphSharedLuaStack::cbGraphSharedLuaStack ( const cbGraphSharedLuaStack )
delete

Construct a new cb Graph Shared Lua Stack object using const cbGraphSharedLuaStack& is deleted.

Member Function Documentation

◆ execScript()

void cb::graph::cbGraphSharedLuaStack::execScript ( const std::string &  script)

execute the hard coded script.

Parameters
script

Definition at line 60 of file cbComputeGraph.cpp.

References m_lua.

Referenced by cb::graph::cbComputeGraph::execScript().

Here is the caller graph for this function:

◆ execScriptFile()

void cb::graph::cbGraphSharedLuaStack::execScriptFile ( const std::string &  filePath)

execute the script file from disk directly.

Parameters
filePathstring.

Definition at line 56 of file cbComputeGraph.cpp.

References m_lua.

Referenced by cb::graph::cbComputeGraph::execScriptFile().

Here is the caller graph for this function:

◆ get()

luaJitThread & cb::graph::cbGraphSharedLuaStack::get ( )

get the lua state.

Returns
luaJitThread&

Definition at line 62 of file cbComputeGraph.cpp.

References m_lua.

Referenced by cb::graph::cbComputeGraph::cbComputeGraph(), cb::graph::cbComputeGraph::createCombineNode(), and cb::graph::cbComputeGraph::createFilterNode().

Here is the caller graph for this function:

◆ operator=()

cbGraphSharedLuaStack cb::graph::cbGraphSharedLuaStack::operator= ( const cbGraphSharedLuaStack )
delete

operator of const = is deleted

Returns
cbGraphSharedLuaStack

Member Data Documentation

◆ m_lua

luaJitThread cb::graph::cbGraphSharedLuaStack::m_lua
private

Definition at line 212 of file cbComputeGraph.hpp.

Referenced by execScript(), execScriptFile(), and get().


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