The Battle for Wesnoth  1.19.5+dev
Public Member Functions | Public Attributes | List of all members
lua_ptr< T > Class Template Reference

Tmust inherit enable_lua_ptr<T> More...

#include <lua_ptr.hpp>

Public Member Functions

 lua_ptr (enable_lua_ptr< T > &o)
 
T * get_ptr ()
 

Public Attributes

std::weak_ptr< T * > self_
 

Detailed Description

template<typename T>
class lua_ptr< T >

Tmust inherit enable_lua_ptr<T>

Definition at line 33 of file lua_ptr.hpp.

Constructor & Destructor Documentation

◆ lua_ptr()

template<typename T >
lua_ptr< T >::lua_ptr ( enable_lua_ptr< T > &  o)
inline

Definition at line 36 of file lua_ptr.hpp.

Member Function Documentation

◆ get_ptr()

template<typename T >
T* lua_ptr< T >::get_ptr ( )
inline

Definition at line 37 of file lua_ptr.hpp.

References lua_ptr< T >::self_.

Referenced by intf_set_dialog_callback(), luaW_checkwidget(), and luaW_checkwidget_ptr().

Member Data Documentation

◆ self_

template<typename T >
std::weak_ptr<T*> lua_ptr< T >::self_

Definition at line 44 of file lua_ptr.hpp.

Referenced by lua_ptr< T >::get_ptr().


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