Ardour  8.12
LuaCallback Class Reference

#include <luainstance.h>

Inheritance diagram for LuaCallback:
[legend]

Public Member Functions

 LuaCallback (ARDOUR::Session *, const std::string &, const std::string &, const ActionHook &, const ARDOUR::LuaScriptParamList &)
 
 LuaCallback (ARDOUR::Session *, XMLNode &node)
 
 ~LuaCallback ()
 
XMLNodeget_state () const
 
void set_session (ARDOUR::Session *)
 
const PBD::IDid () const
 
const std::string & name () const
 
ActionHook signals () const
 
bool lua_slot (std::string &, std::string &, ActionHook &, ARDOUR::LuaScriptParamList &)
 
- Public Member Functions inherited from ARDOUR::SessionHandlePtr
 SessionHandlePtr (ARDOUR::Session *s)
 
 SessionHandlePtr ()
 
virtual ~SessionHandlePtr ()
 
virtual ARDOUR::Sessionsession () const
 

Public Attributes

PBD::Signal0< void > drop_callback
 

Protected Member Functions

void session_going_away ()
 

Private Member Functions

void reconnect ()
 
template<class T >
void reconnect_object (T)
 
void init ()
 
template<typename T , typename S >
void connect_0 (enum LuaSignal::LuaSignal, T, S *)
 
template<typename T >
void proxy_0 (enum LuaSignal::LuaSignal, T)
 
template<typename T , typename C1 >
void connect_1 (enum LuaSignal::LuaSignal, T, PBD::Signal1< void, C1 > *)
 
template<typename T , typename C1 >
void proxy_1 (enum LuaSignal::LuaSignal, T, C1)
 
template<typename T , typename C1 , typename C2 >
void connect_2 (enum LuaSignal::LuaSignal, T, PBD::Signal2< void, C1, C2 > *)
 
template<typename T , typename C1 , typename C2 >
void proxy_2 (enum LuaSignal::LuaSignal, T, C1, C2)
 
template<typename T , typename C1 , typename C2 , typename C3 >
void connect_3 (enum LuaSignal::LuaSignal, T, PBD::Signal3< void, C1, C2, C3 > *)
 
template<typename T , typename C1 , typename C2 , typename C3 >
void proxy_3 (enum LuaSignal::LuaSignal, T, C1, C2, C3)
 
template<typename T , typename C1 , typename C2 , typename C3 , typename C4 >
void connect_4 (enum LuaSignal::LuaSignal, T, PBD::Signal4< void, C1, C2, C3, C4 > *)
 
template<typename T , typename C1 , typename C2 , typename C3 , typename C4 >
void proxy_4 (enum LuaSignal::LuaSignal, T, C1, C2, C3, C4)
 

Private Attributes

LuaState lua
 
PBD::ID _id
 
std::string _name
 
ActionHook _signals
 
luabridge::LuaRef * _lua_add
 
luabridge::LuaRef * _lua_get
 
luabridge::LuaRef * _lua_call
 
luabridge::LuaRef * _lua_save
 
luabridge::LuaRef * _lua_load
 
PBD::ScopedConnectionList _connections
 

Additional Inherited Members

- Protected Attributes inherited from ARDOUR::SessionHandlePtr
ARDOUR::Session_session
 
PBD::ScopedConnectionList _session_connections
 

Detailed Description

Definition at line 49 of file luainstance.h.

Constructor & Destructor Documentation

◆ LuaCallback() [1/2]

LuaCallback::LuaCallback ( ARDOUR::Session ,
const std::string &  ,
const std::string &  ,
const ActionHook ,
const ARDOUR::LuaScriptParamList  
)

◆ LuaCallback() [2/2]

LuaCallback::LuaCallback ( ARDOUR::Session ,
XMLNode node 
)

◆ ~LuaCallback()

LuaCallback::~LuaCallback ( )

Member Function Documentation

◆ connect_0()

template<typename T , typename S >
void LuaCallback::connect_0 ( enum LuaSignal::LuaSignal  ,
,
S *   
)
private

◆ connect_1()

template<typename T , typename C1 >
void LuaCallback::connect_1 ( enum LuaSignal::LuaSignal  ,
,
PBD::Signal1< void, C1 > *   
)
private

◆ connect_2()

template<typename T , typename C1 , typename C2 >
void LuaCallback::connect_2 ( enum LuaSignal::LuaSignal  ,
,
PBD::Signal2< void, C1, C2 > *   
)
private

◆ connect_3()

template<typename T , typename C1 , typename C2 , typename C3 >
void LuaCallback::connect_3 ( enum LuaSignal::LuaSignal  ,
,
PBD::Signal3< void, C1, C2, C3 > *   
)
private

◆ connect_4()

template<typename T , typename C1 , typename C2 , typename C3 , typename C4 >
void LuaCallback::connect_4 ( enum LuaSignal::LuaSignal  ,
,
PBD::Signal4< void, C1, C2, C3, C4 > *   
)
private

◆ get_state()

XMLNode& LuaCallback::get_state ( ) const

◆ id()

const PBD::ID& LuaCallback::id ( ) const
inline

Definition at line 59 of file luainstance.h.

◆ init()

void LuaCallback::init ( )
private

◆ lua_slot()

bool LuaCallback::lua_slot ( std::string &  ,
std::string &  ,
ActionHook ,
ARDOUR::LuaScriptParamList  
)

◆ name()

const std::string& LuaCallback::name ( ) const
inline

Definition at line 60 of file luainstance.h.

◆ proxy_0()

template<typename T >
void LuaCallback::proxy_0 ( enum LuaSignal::LuaSignal  ,
 
)
private

◆ proxy_1()

template<typename T , typename C1 >
void LuaCallback::proxy_1 ( enum LuaSignal::LuaSignal  ,
,
C1   
)
private

◆ proxy_2()

template<typename T , typename C1 , typename C2 >
void LuaCallback::proxy_2 ( enum LuaSignal::LuaSignal  ,
,
C1  ,
C2   
)
private

◆ proxy_3()

template<typename T , typename C1 , typename C2 , typename C3 >
void LuaCallback::proxy_3 ( enum LuaSignal::LuaSignal  ,
,
C1  ,
C2  ,
C3   
)
private

◆ proxy_4()

template<typename T , typename C1 , typename C2 , typename C3 , typename C4 >
void LuaCallback::proxy_4 ( enum LuaSignal::LuaSignal  ,
,
C1  ,
C2  ,
C3  ,
C4   
)
private

◆ reconnect()

void LuaCallback::reconnect ( )
private

◆ reconnect_object()

template<class T >
void LuaCallback::reconnect_object ( )
private

◆ session_going_away()

void LuaCallback::session_going_away ( )
protectedvirtual

Reimplemented from ARDOUR::SessionHandlePtr.

◆ set_session()

void LuaCallback::set_session ( ARDOUR::Session )
virtual

Reimplemented from ARDOUR::SessionHandlePtr.

◆ signals()

ActionHook LuaCallback::signals ( ) const
inline

Definition at line 61 of file luainstance.h.

Member Data Documentation

◆ _connections

PBD::ScopedConnectionList LuaCallback::_connections
private

Definition at line 85 of file luainstance.h.

◆ _id

PBD::ID LuaCallback::_id
private

Definition at line 71 of file luainstance.h.

◆ _lua_add

luabridge::LuaRef* LuaCallback::_lua_add
private

Definition at line 79 of file luainstance.h.

◆ _lua_call

luabridge::LuaRef* LuaCallback::_lua_call
private

Definition at line 81 of file luainstance.h.

◆ _lua_get

luabridge::LuaRef* LuaCallback::_lua_get
private

Definition at line 80 of file luainstance.h.

◆ _lua_load

luabridge::LuaRef* LuaCallback::_lua_load
private

Definition at line 83 of file luainstance.h.

◆ _lua_save

luabridge::LuaRef* LuaCallback::_lua_save
private

Definition at line 82 of file luainstance.h.

◆ _name

std::string LuaCallback::_name
private

Definition at line 72 of file luainstance.h.

◆ _signals

ActionHook LuaCallback::_signals
private

Definition at line 73 of file luainstance.h.

◆ drop_callback

PBD::Signal0<void> LuaCallback::drop_callback

Definition at line 63 of file luainstance.h.

◆ lua

LuaState LuaCallback::lua
private

Definition at line 69 of file luainstance.h.


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