Lua-API++  2015-02-12-3
Lua-API++ library
RegistryKey Class Reference

Key for registry-stored values. More...

Public Member Functions

 RegistryKey () noexcept=default
 Default RegistryKey is empty.
 
RegistryKeyoperator= (const RegistryKey &)=delete
 RegistryKey cannot be overwritten by another.
 
void kill () noexcept
 Destroy the reference (becomes non-ref).
 
 operator bool () const noexcept
 Check if the value is not empty. More...
 
int get () const noexcept
 Get underlying key value.
 
bool operator== (const RegistryKey &rhs) const noexcept
 Check for equality of keys.
 
bool operator!= (const RegistryKey &rhs) const noexcept
 Check for inequality of keys.
 

Static Public Attributes

static constexpr int noref = -2
 Empty key value (LUA_NOREF).
 

Detailed Description

Key for registry-stored values.

Member Function Documentation

operator bool ( ) const
inlinenoexcept

Check if the value is not empty.

Only valid non-empty keys can be used with registry.