aot_table_module Module

This module provides some convenient functions to act on Lua tables.


Uses

  • module~~aot_table_module~~UsesGraph module~aot_table_module aot_table_module module~aot_quadruple_table_module aot_quadruple_table_module module~aot_table_module->module~aot_quadruple_table_module module~aot_top_module aot_top_module module~aot_table_module->module~aot_top_module module~aot_table_ops_module aot_table_ops_module module~aot_table_module->module~aot_table_ops_module module~aot_err_module aot_err_module module~aot_table_module->module~aot_err_module module~flu_kinds_module flu_kinds_module module~aot_table_module->module~flu_kinds_module module~aot_extdouble_table_module aot_extdouble_table_module module~aot_table_module->module~aot_extdouble_table_module module~flu_binding flu_binding module~aot_table_module->module~flu_binding module~aot_quadruple_table_module->module~aot_top_module module~aot_quadruple_table_module->module~aot_table_ops_module module~aot_quadruple_table_module->module~aot_err_module module~aot_quadruple_table_module->module~flu_kinds_module module~aot_quadruple_table_module->module~flu_binding module~aot_quadruple_top_module aot_quadruple_top_module module~aot_quadruple_table_module->module~aot_quadruple_top_module module~aot_top_module->module~aot_err_module module~aot_top_module->module~flu_kinds_module module~aot_top_module->module~flu_binding module~aot_top_module->module~aot_quadruple_top_module module~aot_extdouble_top_module aot_extdouble_top_module module~aot_top_module->module~aot_extdouble_top_module module~aot_table_ops_module->module~aot_top_module module~aot_table_ops_module->module~flu_kinds_module module~aot_table_ops_module->module~flu_binding module~aot_err_module->module~flu_binding module~aot_extdouble_table_module->module~aot_top_module module~aot_extdouble_table_module->module~aot_table_ops_module module~aot_extdouble_table_module->module~aot_err_module module~aot_extdouble_table_module->module~flu_kinds_module module~aot_extdouble_table_module->module~flu_binding module~aot_extdouble_table_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~aot_err_module module~aot_quadruple_top_module->module~flu_binding module~lua_parameters->iso_c_binding module~aot_extdouble_top_module->module~aot_err_module module~aot_extdouble_top_module->module~flu_binding 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_module~~UsedByGraph module~aot_table_module aot_table_module module~aot_fun_module aot_fun_module module~aot_fun_module->module~aot_table_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_table_module

Contents


Interfaces

public interface aot_table_get_val

Get a value from a table.

Read more…
  • private subroutine get_table_real(val, ErrCode, L, thandle, key, pos, default)

    Retrieve a single precision real value from a table.

    Arguments

    TypeIntentOptionalAttributesName
    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.

    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.

    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

    TypeIntentOptionalAttributesName
    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.

    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.

    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

    TypeIntentOptionalAttributesName
    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.

    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.

    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

    TypeIntentOptionalAttributesName
    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.

    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.

    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

    TypeIntentOptionalAttributesName
    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.

    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.

    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

    TypeIntentOptionalAttributesName
    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.

    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.

    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

    TypeIntentOptionalAttributesName
    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.

    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.

    type(c_ptr), intent(in), optional :: default

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

public interface aot_table_set_val

Set a value in a table.

Read more…
  • 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.

public interface aot_get_val

Get a value from the Lua script.

Read more…
  • private subroutine get_table_real(val, ErrCode, L, thandle, key, pos, default)

    Retrieve a single precision real value from a table.

    Arguments

    TypeIntentOptionalAttributesName
    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.

    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.

    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

    TypeIntentOptionalAttributesName
    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.

    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.

    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

    TypeIntentOptionalAttributesName
    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.

    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.

    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

    TypeIntentOptionalAttributesName
    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.

    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.

    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

    TypeIntentOptionalAttributesName
    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.

    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.

    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

    TypeIntentOptionalAttributesName
    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.

    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.

    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

    TypeIntentOptionalAttributesName
    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.

    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.

    type(c_ptr), intent(in), optional :: default

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

public interface aot_table_from_1Darray

This interface enables the simple creation of uniform one dimensional arrays as tables in the Lua context.

Read more…
  • private subroutine create_1Darray_real(L, thandle, val)

    This subroutine takes a one dimensional array, and puts it as a table into the Lua context.

    Read more…

    Arguments

    TypeIntentOptionalAttributesName
    type(flu_State) :: L

    Handle to the Lua script.

    integer, intent(out) :: thandle

    Handle to access the newly created table.

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

    Values to put into the new table.

  • private subroutine create_1Darray_double(L, thandle, val)

    This subroutine takes a one dimensional array, and puts it as a table into the Lua context.

    Read more…

    Arguments

    TypeIntentOptionalAttributesName
    type(flu_State) :: L
    integer, intent(out) :: thandle

    Handle to access the newly created table.

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

    Values to put into the new table.


Functions

public function aot_exists(L, thandle, key, pos) result(exists)

Returns wether a given entity exists in the Lua script L.

Read more…

Arguments

TypeIntentOptionalAttributesName
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.

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.

Return Value logical


Subroutines

public subroutine aot_table_set_top(L, thandle, key, pos)

Put the top of the stack into a table.

Arguments

TypeIntentOptionalAttributesName
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 get_table_real(val, ErrCode, L, thandle, key, pos, default)

Retrieve a single precision real value from a table.

Arguments

TypeIntentOptionalAttributesName
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.

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.

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

TypeIntentOptionalAttributesName
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.

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.

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

TypeIntentOptionalAttributesName
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.

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.

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

TypeIntentOptionalAttributesName
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.

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.

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_logical(val, ErrCode, L, thandle, key, pos, default)

Retrieve a logical value from a table.

Arguments

TypeIntentOptionalAttributesName
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.

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.

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

TypeIntentOptionalAttributesName
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.

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.

type(c_ptr), 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

TypeIntentOptionalAttributesName
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.

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.

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 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_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_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_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.

private subroutine create_1Darray_real(L, thandle, val)

This subroutine takes a one dimensional array, and puts it as a table into the Lua context.

Read more…

Arguments

TypeIntentOptionalAttributesName
type(flu_State) :: L

Handle to the Lua script.

integer, intent(out) :: thandle

Handle to access the newly created table.

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

Values to put into the new table.

private subroutine create_1Darray_double(L, thandle, val)

This subroutine takes a one dimensional array, and puts it as a table into the Lua context.

Read more…

Arguments

TypeIntentOptionalAttributesName
type(flu_State) :: L
integer, intent(out) :: thandle

Handle to access the newly created table.

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

Values to put into the new table.