summaryrefslogtreecommitdiff
path: root/Runtime/Lua/LuaBind/LuaBindRef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/Lua/LuaBind/LuaBindRef.cpp')
-rw-r--r--Runtime/Lua/LuaBind/LuaBindRef.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/Runtime/Lua/LuaBind/LuaBindRef.cpp b/Runtime/Lua/LuaBind/LuaBindRef.cpp
index b2f8e1c..d0f2766 100644
--- a/Runtime/Lua/LuaBind/LuaBindRef.cpp
+++ b/Runtime/Lua/LuaBind/LuaBindRef.cpp
@@ -4,24 +4,24 @@
namespace LuaBind
{
- Ref::Ref(LuaBind::VM* vm, RefMode mode)
+ UniversalRef::UniversalRef(LuaBind::VM* vm, RefMode mode)
: mRefID(LUA_NOREF)
, mMode(mode)
, mOwner(vm)
{
}
- Ref::~Ref()
+ UniversalRef::~UniversalRef()
{
// 自动释放引用
}
- Ref::operator bool()
+ UniversalRef::operator bool()
{
return (mRefID != LUA_NOREF);
}
- void Ref::UnRef()
+ void UniversalRef::UnRef()
{
if (mRefID == LUA_NOREF)
return;
@@ -41,7 +41,7 @@ namespace LuaBind
}
}
- void Ref::SetRef(LuaBind::State& state, int idx)
+ void UniversalRef::SetRef(LuaBind::State& state, int idx)
{
assert(state.GetVM() == mOwner);
@@ -59,7 +59,7 @@ namespace LuaBind
}
}
- bool Ref::PushRef(LuaBind::State& state)
+ bool UniversalRef::PushRef(LuaBind::State& state)
{
assert(mRefID != LUA_NOREF);
@@ -84,12 +84,12 @@ namespace LuaBind
}
StrongRef::StrongRef(LuaBind::VM* vm)
- : Ref(vm, STRONG_REF)
+ : UniversalRef(vm, STRONG_REF)
{
}
WeakRef::WeakRef(LuaBind::VM* vm)
- : Ref(vm, WEAK_REF)
+ : UniversalRef(vm, WEAK_REF)
{
}