Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
lua
LuaStateHandle.hpp
Go to the documentation of this file.
1
#ifndef OCL_LUASTATEHANDLE_HPP
2
#define OCL_LUASTATEHANDLE_HPP
3
4
#include <
rtt/os/MutexLock.hpp
>
5
6
struct
lua_State
;
7
8
namespace
OCL
9
{
10
class
LuaStateHandle
11
{
12
private
:
13
lua_State
*
L
;
14
mutable
RTT::os::MutexInterface
*
m
;
15
16
public
:
17
LuaStateHandle
();
18
LuaStateHandle
(
const
LuaStateHandle
&);
19
LuaStateHandle
(
lua_State
*L,
RTT::os::MutexInterface
&mutex);
20
~LuaStateHandle
();
21
22
LuaStateHandle
&
operator=
(
const
LuaStateHandle
&);
23
24
lua_State
*
get
()
const
;
25
operator
lua_State
*()
const
{
return
get
(); }
26
lua_State
*
operator->
()
const
{
return
get
(); }
27
28
};
29
30
}
// namespace OCL
31
32
#endif // OCL_LUASTATEHANDLE_HPP
OCL::LuaStateHandle::~LuaStateHandle
~LuaStateHandle()
Definition:
LuaStateHandle.cpp:23
OCL::LuaStateHandle::L
lua_State * L
Definition:
LuaStateHandle.hpp:13
lua_State
struct lua_State lua_State
Definition:
lua-repl.h:54
OCL::LuaStateHandle::LuaStateHandle
LuaStateHandle()
Definition:
LuaStateHandle.cpp:6
OCL
Definition:
deployer-funcs.cpp:68
OCL::LuaStateHandle::operator=
LuaStateHandle & operator=(const LuaStateHandle &)
Definition:
LuaStateHandle.cpp:28
MutexLock.hpp
OCL::LuaStateHandle::operator->
lua_State * operator->() const
Definition:
LuaStateHandle.hpp:26
OCL::LuaStateHandle
Definition:
LuaStateHandle.hpp:10
OCL::LuaStateHandle::m
RTT::os::MutexInterface * m
Definition:
LuaStateHandle.hpp:14
RTT::os::MutexInterface
ocl
Author(s): OCL Development Team
autogenerated on Mon Mar 23 2020 04:47:19