Ardour  8.7-15-gadf511264b
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 741 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 748 of file Userdata.h.

◆ push()

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

Definition at line 743 of file Userdata.h.


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