aot_table_set_val Interface

public interface aot_table_set_val

Set a value in a table.

The given value will be put at the entry named by key into the table provided in thandle. Alternatively, you can also put the value by position into the table by providing the pos argument. If both, pos and key are provided, the key will be used. Though, both of them are optional, at least one of them has to be provided.

Calls

interface~~aot_table_set_val~~CallsGraph interface~aot_table_set_val aot_table_set_val proc~set_table_userdata set_table_userdata interface~aot_table_set_val->proc~set_table_userdata proc~set_table_integer set_table_integer interface~aot_table_set_val->proc~set_table_integer proc~set_table_long set_table_long interface~aot_table_set_val->proc~set_table_long proc~set_table_double set_table_double interface~aot_table_set_val->proc~set_table_double proc~set_table_logical set_table_logical interface~aot_table_set_val->proc~set_table_logical proc~set_table_string set_table_string interface~aot_table_set_val->proc~set_table_string proc~set_table_real set_table_real interface~aot_table_set_val->proc~set_table_real proc~flu_pushlightuserdata flu_pushlightuserdata proc~set_table_userdata->proc~flu_pushlightuserdata proc~flu_settable flu_settable proc~set_table_userdata->proc~flu_settable proc~flu_setfield flu_setfield proc~set_table_userdata->proc~flu_setfield interface~flu_pushinteger flu_pushinteger proc~set_table_userdata->interface~flu_pushinteger proc~set_table_integer->proc~flu_settable proc~set_table_integer->proc~flu_setfield proc~set_table_integer->interface~flu_pushinteger proc~set_table_long->proc~flu_settable proc~set_table_long->proc~flu_setfield proc~set_table_long->interface~flu_pushinteger interface~flu_pushnumber flu_pushnumber proc~set_table_double->interface~flu_pushnumber proc~set_table_double->proc~flu_settable proc~set_table_double->proc~flu_setfield proc~set_table_double->interface~flu_pushinteger proc~set_table_logical->proc~flu_settable proc~flu_pushboolean flu_pushboolean proc~set_table_logical->proc~flu_pushboolean proc~set_table_logical->proc~flu_setfield proc~set_table_logical->interface~flu_pushinteger proc~set_table_string->proc~flu_settable proc~set_table_string->proc~flu_setfield proc~flu_pushstring flu_pushstring proc~set_table_string->proc~flu_pushstring proc~set_table_string->interface~flu_pushinteger proc~set_table_real->interface~flu_pushnumber proc~set_table_real->proc~flu_settable proc~set_table_real->proc~flu_setfield proc~set_table_real->interface~flu_pushinteger proc~flu_pushdouble flu_pushdouble interface~flu_pushnumber->proc~flu_pushdouble proc~flu_pushreal flu_pushreal interface~flu_pushnumber->proc~flu_pushreal interface~lua_pushlightuserdata lua_pushlightuserdata proc~flu_pushlightuserdata->interface~lua_pushlightuserdata interface~lua_settable lua_settable proc~flu_settable->interface~lua_settable interface~lua_pushboolean lua_pushboolean proc~flu_pushboolean->interface~lua_pushboolean interface~lua_setfield lua_setfield proc~flu_setfield->interface~lua_setfield interface~lua_pushlstring lua_pushlstring proc~flu_pushstring->interface~lua_pushlstring proc~flu_pushint flu_pushint interface~flu_pushinteger->proc~flu_pushint proc~flu_pushlong flu_pushlong interface~flu_pushinteger->proc~flu_pushlong interface~lua_pushinteger lua_pushinteger proc~flu_pushint->interface~lua_pushinteger proc~flu_pushlong->interface~lua_pushinteger interface~lua_pushnumber lua_pushnumber proc~flu_pushdouble->interface~lua_pushnumber proc~flu_pushreal->interface~lua_pushnumber

Contents


Module Procedures

private subroutine set_table_real(val, L, thandle, key, pos)

Put a single precision real value into a table.

Arguments

TypeIntentOptionalAttributesName
real(kind=single_k), intent(in) :: val

Value of the table entry if it exists.

type(flu_State) :: L

Handle to the Lua script.

integer, intent(in) :: thandle

Handle to the table to look the value up in.

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

Name of the entry to look for.

Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given.

integer, intent(in), optional :: pos

Position of the entry to look for in the table.

It allows the access to unnamed arrays in the Lua tables.

private subroutine set_table_double(val, L, thandle, key, pos)

Put a double precision real value into a table.

Arguments

TypeIntentOptionalAttributesName
real(kind=double_k), intent(in) :: val

Value of the table entry if it exists.

type(flu_State) :: L

Handle to the Lua script.

integer, intent(in) :: thandle

Handle to the table to look the value up in.

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

Name of the entry to look for.

Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given.

integer, intent(in), optional :: pos

Position of the entry to look for in the table.

It allows the access to unnamed arrays in the Lua tables.

private subroutine set_table_integer(val, L, thandle, key, pos)

Put a default integer value into a table.

Arguments

TypeIntentOptionalAttributesName
integer(kind=int_k), intent(in) :: val

Value of the table entry if it exists.

type(flu_State) :: L

Handle to the Lua script.

integer, intent(in) :: thandle

Handle to the table to look the value up in.

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

Name of the entry to look for.

Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given.

integer, intent(in), optional :: pos

Position of the entry to look for in the table.

It allows the access to unnamed arrays in the Lua tables.

private subroutine set_table_long(val, L, thandle, key, pos)

Put a long integer value into a table.

Arguments

TypeIntentOptionalAttributesName
integer(kind=long_k), intent(in) :: val

Value of the table entry if it exists.

type(flu_State) :: L

Handle to the Lua script.

integer, intent(in) :: thandle

Handle to the table to look the value up in.

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

Name of the entry to look for.

Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given.

integer, intent(in), optional :: pos

Position of the entry to look for in the table.

It allows the access to unnamed arrays in the Lua tables.

private subroutine set_table_string(val, L, thandle, key, pos)

Put a string value into a table.

Arguments

TypeIntentOptionalAttributesName
character(len=*), intent(in) :: val

Value to set in the table.

type(flu_State) :: L

Handle to the Lua script.

integer, intent(in) :: thandle

Handle to the table to look the value up in.

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

Name of the entry to set.

Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given.

integer, intent(in), optional :: pos

Position of the entry to set in the table.

It allows the access to unnamed arrays in the Lua tables.

private subroutine set_table_logical(val, L, thandle, key, pos)

Put a logical value into a table.

Arguments

TypeIntentOptionalAttributesName
logical, intent(in) :: val

Value to set in the table.

type(flu_State) :: L

Handle to the Lua script.

integer, intent(in) :: thandle

Handle to the table to look the value up in.

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

Name of the entry to set.

Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given.

integer, intent(in), optional :: pos

Position of the entry to set in the table.

It allows the access to unnamed arrays in the Lua tables.

private subroutine set_table_userdata(val, L, thandle, key, pos)

Put user-data pointer into a table.

Arguments

TypeIntentOptionalAttributesName
type(c_ptr), intent(in) :: val

Pointer to set in the table.

type(flu_State) :: L

Handle to the Lua script.

integer, intent(in) :: thandle

Handle to the table to look the value up in.

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

Name of the entry to set.

Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given.

integer, intent(in), optional :: pos

Position of the entry to set in the table.

It allows the access to unnamed arrays in the Lua tables.