|
HoverRace
2.0
|
Encapsulates a ref to the registry. More...
#include <RegistryRef.h>
Public Member Functions | |
| constexpr | RegistryRef (Core &scripting) noexcept |
| RegistryRef (const RegistryRef &o) noexcept | |
| RegistryRef (RegistryRef &&o) noexcept | |
| ~RegistryRef () | |
| void | Clear () noexcept |
| Unset the value stored by this reference. More... | |
| Core & | GetScripting () const noexcept |
| operator bool () const noexcept | |
| RegistryRef & | operator= (const RegistryRef &o) noexcept |
| RegistryRef & | operator= (RegistryRef &&o) noexcept |
| RegistryRef & | operator= (const luabind::object &obj) |
| void | Push () const noexcept |
| Pushes the value stored by the reference onto the Lua stack. More... | |
| void | Set (const luabind::object &obj) |
| Set the value. More... | |
| void | SetFromStack () noexcept |
| Pop a value from the Lua stack and store it in the registry. More... | |
Private Attributes | |
| int | ref |
| Core * | scripting |
Encapsulates a ref to the registry.
This handles copy and move operations.
|
inlinenoexcept |
|
noexcept |
|
inlinenoexcept |
|
inline |
|
noexcept |
Unset the value stored by this reference.
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
inlinenoexcept |
|
inline |
|
noexcept |
Pushes the value stored by the reference onto the Lua stack.
If there is no value stored, then nil is pushed.
| void HoverRace::Script::RegistryRef::Set | ( | const luabind::object & | obj | ) |
Set the value.
| obj | The new value. |
|
noexcept |
Pop a value from the Lua stack and store it in the registry.
|
private |
|
private |
1.8.11