Ardour  9.0-pre0-350-gf17a656217
Stack< T * > Struct Template Reference

#include <Userdata.h>

Static Public Member Functions

static void push (lua_State *L, T *const p)
 
static T * get (lua_State *L, int index)
 

Detailed Description

template<class T>
struct Stack< T * >

Lua stack conversions for pointers and references to class objects.

Lifetime is managed by C++. Lua code which remembers a reference to the value may result in undefined behavior if C++ destroys the object. The handling of the const and volatile qualifiers happens in UserdataPtr.

Definition at line 701 of file Userdata.h.

Member Function Documentation

◆ get()

template<class T >
static T* Stack< T * >::get ( lua_State L,
int  index 
)
inlinestatic

Definition at line 708 of file Userdata.h.

◆ push()

template<class T >
static void Stack< T * >::push ( lua_State L,
T *const  p 
)
inlinestatic

Definition at line 703 of file Userdata.h.


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