mrdocs::lua::Value

A Lua value.

Synopsis

Declared in <mrdocs/Support/Lua.hpp>

class Value;

Member Functions

NameDescription
Value [constructor]Constructor.
~Value [destructor]Destructor.
call Invoke the value as a function.
displayString Return a string representation.
isBoolean Return true if the value is a boolean.
isFunction Return true if the value is a function.
isNil Return true if the value is nil.
isNumber Return true if the value is numeric.
isString Return true if the value is a string.
isTable Return true if the value is a table.
operator() Invoke the value as a function.
type Return the Lua type of this value.

Protected Member Functions

NameDescription
Value [constructor]Create a value referring to a stack slot within a scope.

Protected Data Members

NameDescription
index_ Stack index where the value is stored.
scope_ Scope that owns the stack slot for this value.

Friends

NameDescription
mrdocs::lua::AccessInternal tag granting access to lua internals.

Derived Classes

NameDescription
Function A Lua function.
String A Lua string.
Table A Lua table.