aot_table_get_val Interface

public interface aot_table_get_val

Get a value from a table.

First, the given key is looked up, if this fails, the value at the given position is looked up, and if this also fails, the default value is returned. Positional addressing is only valid, as long, as no value was provided by an explicit key in the list before the entry in question.

Calls

interface~~aot_table_get_val~~CallsGraph interface~aot_table_get_val aot_table_get_val proc~get_table_double get_table_double interface~aot_table_get_val->proc~get_table_double proc~get_table_integer get_table_integer interface~aot_table_get_val->proc~get_table_integer proc~get_table_logical get_table_logical interface~aot_table_get_val->proc~get_table_logical proc~get_table_long get_table_long interface~aot_table_get_val->proc~get_table_long proc~get_table_real get_table_real interface~aot_table_get_val->proc~get_table_real proc~get_table_string get_table_string interface~aot_table_get_val->proc~get_table_string proc~get_table_userdata get_table_userdata interface~aot_table_get_val->proc~get_table_userdata interface~aot_top_get_val~8 aot_top_get_val proc~get_table_double->interface~aot_top_get_val~8 proc~aot_table_push aot_table_push proc~get_table_double->proc~aot_table_push proc~flu_getglobal flu_getglobal proc~get_table_double->proc~flu_getglobal proc~get_table_integer->interface~aot_top_get_val~8 proc~get_table_integer->proc~aot_table_push proc~get_table_integer->proc~flu_getglobal proc~get_table_logical->interface~aot_top_get_val~8 proc~get_table_logical->proc~aot_table_push proc~get_table_logical->proc~flu_getglobal proc~get_table_long->interface~aot_top_get_val~8 proc~get_table_long->proc~aot_table_push proc~get_table_long->proc~flu_getglobal proc~get_table_real->interface~aot_top_get_val~8 proc~get_table_real->proc~aot_table_push proc~get_table_real->proc~flu_getglobal proc~get_table_string->interface~aot_top_get_val~8 proc~get_table_string->proc~aot_table_push proc~get_table_string->proc~flu_getglobal proc~get_table_userdata->interface~aot_top_get_val~8 proc~get_table_userdata->proc~aot_table_push proc~get_table_userdata->proc~flu_getglobal proc~aot_top_get_extdouble aot_top_get_extdouble interface~aot_top_get_val~8->proc~aot_top_get_extdouble proc~aot_table_push->proc~flu_getglobal interface~flu_pushinteger flu_pushinteger proc~aot_table_push->interface~flu_pushinteger proc~flu_getfield flu_getfield proc~aot_table_push->proc~flu_getfield proc~flu_gettable flu_gettable proc~aot_table_push->proc~flu_gettable proc~flu_pop flu_pop proc~aot_table_push->proc~flu_pop proc~flu_pushnil flu_pushnil proc~aot_table_push->proc~flu_pushnil proc~flu_type flu_type proc~aot_table_push->proc~flu_type interface~lua_getglobal lua_getglobal proc~flu_getglobal->interface~lua_getglobal proc~flu_pushint flu_pushint interface~flu_pushinteger->proc~flu_pushint proc~flu_pushlong flu_pushlong interface~flu_pushinteger->proc~flu_pushlong proc~aot_top_get_extdouble->proc~flu_pop proc~flu_isnoneornil flu_isNoneOrNil proc~aot_top_get_extdouble->proc~flu_isnoneornil proc~flu_isnumber flu_isnumber proc~aot_top_get_extdouble->proc~flu_isnumber proc~flu_todouble flu_todouble proc~aot_top_get_extdouble->proc~flu_todouble interface~lua_getfield lua_getfield proc~flu_getfield->interface~lua_getfield interface~lua_gettable lua_gettable proc~flu_gettable->interface~lua_gettable interface~lua_settop lua_settop proc~flu_pop->interface~lua_settop interface~lua_pushnil lua_pushnil proc~flu_pushnil->interface~lua_pushnil interface~lua_type lua_type proc~flu_type->interface~lua_type proc~flu_isnoneornil->interface~lua_type interface~lua_isnumber lua_isNumber proc~flu_isnumber->interface~lua_isnumber interface~lua_pushinteger lua_pushinteger proc~flu_pushint->interface~lua_pushinteger proc~flu_pushlong->interface~lua_pushinteger interface~lua_tonumberx lua_tonumberx proc~flu_todouble->interface~lua_tonumberx

Module Procedures

private subroutine get_table_real(val, ErrCode, L, thandle, key, pos, default)

Retrieve a single precision real value from a table.

Arguments

Type IntentOptional Attributes Name
real(kind=single_k), intent(out) :: val

Value of the table entry if it exists.

integer, intent(out) :: ErrCode

Error code to indicate what kind of problem might have occured.

type(flu_State) :: L

Handle to the Lua script.

integer, intent(in), optional :: thandle

Handle to the table to look the value up in.

character(len=*), intent(in), optional :: key

Name of the entry to look for.

Read more…
integer, intent(in), optional :: pos

Position of the entry to look for in the table.

Read more…
real(kind=single_k), intent(in), optional :: default

Some default value, that should be used, if the variable is not set in the Lua script.

private subroutine get_table_double(val, ErrCode, L, thandle, key, pos, default)

Retrieve a double precision real value from a table.

Arguments

Type IntentOptional Attributes Name
real(kind=double_k), intent(out) :: val

Value of the table entry if it exists.

integer, intent(out) :: ErrCode

Error code to indicate what kind of problem might have occured.

type(flu_State) :: L

Handle to the Lua script.

integer, intent(in), optional :: thandle

Handle to the table to look the value up in.

character(len=*), intent(in), optional :: key

Name of the entry to look for.

Read more…
integer, intent(in), optional :: pos

Position of the entry to look for in the table.

Read more…
real(kind=double_k), intent(in), optional :: default

Some default value, that should be used, if the variable is not set in the Lua script.

private subroutine get_table_integer(val, ErrCode, L, thandle, key, pos, default)

Retrieve a default integer value from a table.

Arguments

Type IntentOptional Attributes Name
integer(kind=int_k), intent(out) :: val

Value of the table entry if it exists.

integer, intent(out) :: ErrCode

Error code to indicate what kind of problem might have occured.

type(flu_State) :: L

Handle to the Lua script.

integer, intent(in), optional :: thandle

Handle to the table to look the value up in.

character(len=*), intent(in), optional :: key

Name of the entry to look for.

Read more…
integer, intent(in), optional :: pos

Position of the entry to look for in the table.

Read more…
integer(kind=int_k), intent(in), optional :: default

Some default value, that should be used, if the variable is not set in the Lua script.

private subroutine get_table_long(val, ErrCode, L, thandle, key, pos, default)

Retrieve a long integer value from a table.

Arguments

Type IntentOptional Attributes Name
integer(kind=long_k), intent(out) :: val

Value of the table entry if it exists.

integer, intent(out) :: ErrCode

Error code to indicate what kind of problem might have occured.

type(flu_State) :: L

Handle to the Lua script.

integer, intent(in), optional :: thandle

Handle to the table to look the value up in.

character(len=*), intent(in), optional :: key

Name of the entry to look for.

Read more…
integer, intent(in), optional :: pos

Position of the entry to look for in the table.

Read more…
integer(kind=long_k), intent(in), optional :: default

Some default value, that should be used, if the variable is not set in the Lua script.

private subroutine get_table_string(val, ErrCode, L, thandle, key, pos, default)

Retrieve a string from a table.

Arguments

Type IntentOptional Attributes Name
character(len=*) :: val

Value of the table entry if it exists.

integer, intent(out) :: ErrCode

Error code to indicate what kind of problem might have occured.

type(flu_State) :: L

Handle to the Lua script.

integer, intent(in), optional :: thandle

Handle to the table to look the value up in.

character(len=*), intent(in), optional :: key

Name of the entry to look for.

Read more…
integer, intent(in), optional :: pos

Position of the entry to look for in the table.

Read more…
character(len=*), intent(in), optional :: default

Some default value, that should be used, if the variable is not set in the Lua script.

private subroutine get_table_logical(val, ErrCode, L, thandle, key, pos, default)

Retrieve a logical value from a table.

Arguments

Type IntentOptional Attributes Name
logical, intent(out) :: val

Value of the table entry if it exists.

integer, intent(out) :: ErrCode

Error code to indicate what kind of problem might have occured.

type(flu_State) :: L

Handle to the Lua script.

integer, intent(in), optional :: thandle

Handle to the table to look the value up in.

character(len=*), intent(in), optional :: key

Name of the entry to look for.

Read more…
integer, intent(in), optional :: pos

Position of the entry to look for in the table.

Read more…
logical, intent(in), optional :: default

Some default value, that should be used, if the variable is not set in the Lua script.

private subroutine get_table_userdata(val, ErrCode, L, thandle, key, pos, default)

Retrieve a userdata value (generic C pointer) from a table.

Arguments

Type IntentOptional Attributes Name
type(c_ptr), intent(out) :: val

Value of the table entry if it exists.

integer, intent(out) :: ErrCode

Error code to indicate what kind of problem might have occured.

type(flu_State) :: L

Handle to the Lua script.

integer, intent(in), optional :: thandle

Handle to the table to look the value up in.

character(len=*), intent(in), optional :: key

Name of the entry to look for.

Read more…
integer, intent(in), optional :: pos

Position of the entry to look for in the table.

Read more…
type(c_ptr), intent(in), optional :: default

Some default value, that should be used, if the variable is not set in the Lua script.