aot_table_ops_module Module

This module provides general operations on Lua tables.

These operations are a common set of actions, that are used by the various type specific implementations.


Uses

  • module~~aot_table_ops_module~~UsesGraph module~aot_table_ops_module aot_table_ops_module module~flu_kinds_module flu_kinds_module module~aot_table_ops_module->module~flu_kinds_module module~aot_top_module aot_top_module module~aot_table_ops_module->module~aot_top_module module~flu_binding flu_binding module~aot_table_ops_module->module~flu_binding module~aot_top_module->module~flu_kinds_module module~aot_top_module->module~flu_binding module~aot_quadruple_top_module aot_quadruple_top_module module~aot_top_module->module~aot_quadruple_top_module module~aot_err_module aot_err_module module~aot_top_module->module~aot_err_module module~aot_extdouble_top_module aot_extdouble_top_module module~aot_top_module->module~aot_extdouble_top_module module~flu_binding->module~flu_kinds_module module~lua_parameters lua_parameters module~flu_binding->module~lua_parameters iso_c_binding iso_c_binding module~flu_binding->iso_c_binding module~dump_lua_fif_module dump_lua_fif_module module~flu_binding->module~dump_lua_fif_module module~lua_fif lua_fif module~flu_binding->module~lua_fif module~aot_quadruple_top_module->module~flu_binding module~aot_quadruple_top_module->module~aot_err_module module~lua_parameters->iso_c_binding module~aot_err_module->module~flu_binding module~aot_extdouble_top_module->module~flu_binding module~aot_extdouble_top_module->module~aot_err_module module~dump_lua_fif_module->iso_c_binding module~lua_fif->module~lua_parameters module~lua_fif->iso_c_binding

Used by

  • module~~aot_table_ops_module~~UsedByGraph module~aot_table_ops_module aot_table_ops_module module~aot_quadruple_table_module aot_quadruple_table_module module~aot_quadruple_table_module->module~aot_table_ops_module module~aot_extdouble_vector_module aot_extdouble_vector_module module~aot_extdouble_vector_module->module~aot_table_ops_module module~aot_vector_module aot_vector_module module~aot_vector_module->module~aot_table_ops_module module~aot_vector_module->module~aot_extdouble_vector_module module~aot_quadruple_vector_module aot_quadruple_vector_module module~aot_vector_module->module~aot_quadruple_vector_module module~aot_table_module aot_table_module module~aot_table_module->module~aot_table_ops_module module~aot_table_module->module~aot_quadruple_table_module module~aot_extdouble_table_module aot_extdouble_table_module module~aot_table_module->module~aot_extdouble_table_module module~aot_quadruple_vector_module->module~aot_table_ops_module module~aot_extdouble_table_module->module~aot_table_ops_module module~aot_references_module aot_references_module module~aot_references_module->module~aot_table_ops_module module~aot_fun_module aot_fun_module module~aot_fun_module->module~aot_table_module module~aot_fun_module->module~aot_references_module module~aot_extdouble_fun_module aot_extdouble_fun_module module~aot_fun_module->module~aot_extdouble_fun_module module~aot_quadruple_fun_module aot_quadruple_fun_module module~aot_fun_module->module~aot_quadruple_fun_module module~aot_extdouble_fun_module->module~aot_table_module module~aot_quadruple_fun_module->module~aot_table_module module~aot_path_module aot_path_module module~aot_path_module->module~aot_table_module module~aot_path_module->module~aot_fun_module module~aotus_module aotus_module module~aot_path_module->module~aotus_module module~aotus_module->module~aot_vector_module module~aotus_module->module~aot_table_module

Contents


Interfaces

public interface aot_push

  • public subroutine aot_table_push(L, thandle, key, pos, toptype)

    This subroutine tries to push the value of the entry given by key or pos within the table thandle onto the Lua stack.

    Read more…

    Arguments

    TypeIntentOptionalAttributesName
    type(flu_state) :: L

    Handle for the Lua script.

    integer, intent(in), optional :: thandle

    Handle to the table to look in.

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

    Name of the entry to push to the stack.

    integer, intent(in), optional :: pos

    Position of the entry to push to the stack.

    integer, intent(out), optional :: toptype

Functions

public function aot_table_top(L) result(thandle)

Return the position at the top of the stack as a table handle.

Read more…

Arguments

TypeIntentOptionalAttributesName
type(flu_state) :: L

Handle for the Lua script.

Return Value integer

A handle for the table on the top of the stack to access it.

public function aot_type_of(L, thandle, key, pos) result(luatype)

Get the Lua object in table thandle under the given key or pos on the top of the stack and return the Lua type of the gotten entry.

Read more…

Arguments

TypeIntentOptionalAttributesName
type(flu_State) :: L

Handle to the Lua script.

integer, intent(in), optional :: thandle

Handle of the table to get the value from

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

Key of the value to find the type for.

integer, intent(in), optional :: pos

Position of the value to find the type for.

Return Value integer

Type of the Lua object found in L, thandle, key and pos

public function aot_table_first(L, thandle) result(exists)

Load the first key-value pair of table thandle on the stack.

Read more…

Arguments

TypeIntentOptionalAttributesName
type(flu_state) :: L

Handle for the Lua script.

integer, intent(in) :: thandle

Handle to the table to get the first entry of.

Return Value logical

The return value signals, if there actually is such a first entry.

public function aot_table_length(L, thandle) result(length)

Count the entries in a lua table.

Arguments

TypeIntentOptionalAttributesName
type(flu_state) :: L

Handle for the Lua script.

integer, intent(in) :: thandle

Handle of the table to count the enries in.

Return Value integer

Returns the number of entries in the table.


Subroutines

public subroutine aot_table_open(L, parent, thandle, key, pos)

This subroutine tries to open a table, and returns a handle for it.

Read more…

Arguments

TypeIntentOptionalAttributesName
type(flu_state) :: L

Handle for the Lua script.

integer, intent(in), optional :: parent

Handle of the table containing the requested table.

integer, intent(out) :: thandle

A handle for the table to access it, 0 if no table available.

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

Name of the entry in the parent table to access.

The key takes precedence over the position, if both are provided. In this case the positional address is only tried, if the access to the key failed.

integer, intent(in), optional :: pos

Position of the entry in the parent table to access.

public subroutine aot_table_close(L, thandle)

Close a table again.

Read more…

Arguments

TypeIntentOptionalAttributesName
type(flu_state) :: L

Handle for the Lua script.

integer, intent(in) :: thandle

Handle of the table to close.

public subroutine aot_table_push(L, thandle, key, pos, toptype)

This subroutine tries to push the value of the entry given by key or pos within the table thandle onto the Lua stack.

Read more…

Arguments

TypeIntentOptionalAttributesName
type(flu_state) :: L

Handle for the Lua script.

integer, intent(in), optional :: thandle

Handle to the table to look in.

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

Name of the entry to push to the stack.

integer, intent(in), optional :: pos

Position of the entry to push to the stack.

integer, intent(out), optional :: toptype