aot_get_val Interface

public interface aot_get_val

Use these routines to obtain a vector whose length is unknown.

Arrays will be allocated as needed to read the data from the Lua script with these routines. A maximal length has to be specified to limit the allocated memory by these routines (and make the interfaces distinguishable).

Calls

interface~~aot_get_val~2~~CallsGraph interface~aot_get_val~2 aot_get_val proc~get_table_real_vvect get_table_real_vvect interface~aot_get_val~2->proc~get_table_real_vvect proc~get_table_integer_vvect get_table_integer_vvect interface~aot_get_val~2->proc~get_table_integer_vvect proc~get_table_logical_vvect get_table_logical_vvect interface~aot_get_val~2->proc~get_table_logical_vvect proc~get_table_string_vvect get_table_string_vvect interface~aot_get_val~2->proc~get_table_string_vvect proc~get_table_long_vvect get_table_long_vvect interface~aot_get_val~2->proc~get_table_long_vvect proc~get_table_double_vvect get_table_double_vvect interface~aot_get_val~2->proc~get_table_double_vvect proc~aot_type_of aot_type_of proc~get_table_real_vvect->proc~aot_type_of interface~aot_top_get_val~3 aot_top_get_val proc~get_table_real_vvect->interface~aot_top_get_val~3 proc~get_table_integer_vvect->proc~aot_type_of proc~get_table_integer_vvect->interface~aot_top_get_val~3 proc~get_table_logical_vvect->proc~aot_type_of proc~get_table_logical_vvect->interface~aot_top_get_val~3 proc~get_table_string_vvect->proc~aot_type_of proc~get_table_string_vvect->interface~aot_top_get_val~3 proc~get_table_long_vvect->proc~aot_type_of proc~get_table_long_vvect->interface~aot_top_get_val~3 proc~get_table_double_vvect->proc~aot_type_of proc~get_table_double_vvect->interface~aot_top_get_val~3 proc~flu_getglobal flu_getglobal proc~aot_type_of->proc~flu_getglobal proc~aot_table_push aot_table_push proc~aot_type_of->proc~aot_table_push proc~flu_type flu_type proc~aot_type_of->proc~flu_type proc~aot_top_get_extdouble aot_top_get_extdouble interface~aot_top_get_val~3->proc~aot_top_get_extdouble proc~flu_pop flu_pop proc~aot_top_get_extdouble->proc~flu_pop proc~flu_todouble flu_todouble proc~aot_top_get_extdouble->proc~flu_todouble flu_isnoneornil flu_isnoneornil proc~aot_top_get_extdouble->flu_isnoneornil proc~flu_isnumber flu_isnumber proc~aot_top_get_extdouble->proc~flu_isnumber interface~lua_getglobal lua_getglobal proc~flu_getglobal->interface~lua_getglobal proc~aot_table_push->proc~flu_getglobal proc~aot_table_push->proc~flu_type proc~flu_gettable flu_gettable proc~aot_table_push->proc~flu_gettable proc~aot_table_push->proc~flu_pop interface~flu_pushinteger flu_pushinteger proc~aot_table_push->interface~flu_pushinteger proc~flu_pushnil flu_pushnil proc~aot_table_push->proc~flu_pushnil proc~flu_getfield flu_getfield proc~aot_table_push->proc~flu_getfield interface~lua_type lua_type proc~flu_type->interface~lua_type interface~lua_gettable lua_gettable proc~flu_gettable->interface~lua_gettable interface~lua_settop lua_settop proc~flu_pop->interface~lua_settop interface~lua_tonumberx lua_tonumberx proc~flu_todouble->interface~lua_tonumberx proc~flu_pushint flu_pushint interface~flu_pushinteger->proc~flu_pushint proc~flu_pushlong flu_pushlong interface~flu_pushinteger->proc~flu_pushlong lua_isnumber lua_isnumber proc~flu_isnumber->lua_isnumber interface~lua_pushnil lua_pushnil proc~flu_pushnil->interface~lua_pushnil interface~lua_getfield lua_getfield proc~flu_getfield->interface~lua_getfield interface~lua_pushinteger lua_pushinteger proc~flu_pushint->interface~lua_pushinteger proc~flu_pushlong->interface~lua_pushinteger

Contents


Module Procedures

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

This routine obtains a vectorial quantity with variable length from a Lua table as a whole.

Read more…

Arguments

TypeIntentOptionalAttributesName
real(kind=single_k), intent(out), allocatable:: val(:)

Vector read from the Lua table, will have the same length as the table but not exceed maxlength, if provided.

integer, intent(out), allocatable:: ErrCode(:)

Error code describing problems encountered in each of the components. Will be allocated with the same length as the returned vector. If the complete vector is not given in the Lua script, and no default is provided, an zerosized array will be returned.

integer, intent(in) :: maxlength

Maximal length to allocate for the vector.

type(flu_State) :: L

Handle to the lua script

integer, intent(in), optional :: thandle

Handle of the parent table

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

Name of the variable (vector) to read.

integer, intent(in), optional :: pos

Position of the (vector) to read.

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

A default vector to use, if no proper definition is found. Components will be filled with the help of this default definition.

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

This routine obtains a vectorial quantity with variable length from a Lua table as a whole.

Read more…

Arguments

TypeIntentOptionalAttributesName
real(kind=double_k), intent(out), allocatable:: val(:)

Vector read from the Lua table, will have the same length as the table but not exceed maxlength, if provided.

integer, intent(out), allocatable:: ErrCode(:)

Error code describing problems encountered in each of the components. Will be allocated with the same length as the returned vector. If the complete vector is not given in the Lua script, and no default is provided, an zerosized array will be returned.

integer, intent(in) :: maxlength

Maximal length to allocate for the vector.

type(flu_State) :: L

Handle to the lua script

integer, intent(in), optional :: thandle

Handle of the parent table

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

Name of the variable (vector) to read.

integer, intent(in), optional :: pos

Position of the (vector) to read.

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

A default vector to use, if no proper definition is found. Components will be filled with the help of this default definition.

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

This routine obtains a vectorial quantity with variable length from a Lua table as a whole.

Read more…

Arguments

TypeIntentOptionalAttributesName
integer(kind=int_k), intent(out), allocatable:: val(:)

Vector read from the Lua table, will have the same length as the table but not exceed maxlength, if provided.

integer, intent(out), allocatable:: ErrCode(:)

Error code describing problems encountered in each of the components. Will be allocated with the same length as the returned vector. If the complete vector is not given in the Lua script, and no default is provided, an zerosized array will be returned.

integer, intent(in) :: maxlength

Maximal length to allocate for the vector.

type(flu_State) :: L

Handle to the lua script

integer, intent(in), optional :: thandle

Handle of the parent table

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

Name of the variable (vector) to read.

integer, intent(in), optional :: pos

Position of the (vector) to read.

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

A default vector to use, if no proper definition is found. Components will be filled with the help of this default definition.

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

This routine obtains a vectorial quantity with variable length from a Lua table as a whole.

Read more…

Arguments

TypeIntentOptionalAttributesName
integer(kind=long_k), intent(out), allocatable:: val(:)

Vector read from the Lua table, will have the same length as the table but not exceed maxlength, if provided.

integer, intent(out), allocatable:: ErrCode(:)

Error code describing problems encountered in each of the components. Will be allocated with the same length as the returned vector. If the complete vector is not given in the Lua script, and no default is provided, an zerosized array will be returned.

integer, intent(in) :: maxlength

Maximal length to allocate for the vector.

type(flu_State) :: L

Handle to the lua script

integer, intent(in), optional :: thandle

Handle of the parent table

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

Name of the variable (vector) to read.

integer, intent(in), optional :: pos

Position of the (vector) to read.

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

A default vector to use, if no proper definition is found. Components will be filled with the help of this default definition.

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

This routine obtains a vectorial quantity with variable length from a Lua table as a whole.

Read more…

Arguments

TypeIntentOptionalAttributesName
logical, intent(out), allocatable:: val(:)

Vector read from the Lua table, will have the same length as the table but not exceed maxlength, if provided.

integer, intent(out), allocatable:: ErrCode(:)

Error code describing problems encountered in each of the components. Will be allocated with the same length as the returned vector. If the complete vector is not given in the Lua script, and no default is provided, an zerosized array will be returned.

integer, intent(in) :: maxlength

Maximal length to allocate for the vector.

type(flu_State) :: L

Handle to the lua script

integer, intent(in), optional :: thandle

Handle of the parent table

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

Name of the variable (vector) to read.

integer, intent(in), optional :: pos

Position of the (vector) to read.

logical, intent(in), optional :: default(:)

A default vector to use, if no proper definition is found. Components will be filled with the help of this default definition.

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

This routine obtains a vectorial quantity with variable length from a Lua table as a whole.

Read more…

Arguments

TypeIntentOptionalAttributesName
character(len=*), intent(out), allocatable:: val(:)

Vector read from the Lua table, will have the same length as the table but not exceed maxlength, if provided.

integer, intent(out), allocatable:: ErrCode(:)

Error code describing problems encountered in each of the components. Will be allocated with the same length as the returned vector. If the complete vector is not given in the Lua script, and no default is provided, an zerosized array will be returned.

integer, intent(in) :: maxlength

Maximal length to allocate for the vector.

type(flu_State) :: L

Handle to the lua script

integer, intent(in), optional :: thandle

Handle of the parent table

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

Name of the variable (vector) to read.

integer, intent(in), optional :: pos

Position of the (vector) to read.

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

A default vector to use, if no proper definition is found. Components will be filled with the help of this default definition.