lua::Lazy Struct Referenceabstract

Lazy value in lua (delayed evaluation) More...

#include <utils.h>

Detailed Description

Lazy value in lua (delayed evaluation)

Use Lazy::operator()() to evaluate the value

Definition at line 54 of file utils.h.

Inheritance diagram for lua::Lazy:

Public Member Functions

 Lazy (lua_State *L)
 
virtual momemta::any operator() () const =0
 Evaluate the lazy value. More...
 

Public Attributes

lua_State * L
 The global lua state. This state must be valid for as long as this instance.
 

Member Function Documentation

◆ operator()()

virtual momemta::any lua::Lazy::operator() ( ) const
pure virtual

Evaluate the lazy value.

Returns
The value after evaluation

Implemented in lua::LazyFunction, and lua::LazyTableField.


The documentation for this struct was generated from the following files: