Ordered data structure, allows iterations
Destroy the data structure
Deconstructor for data structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(toml_list_structure), | intent(inout), | target | :: | self |
Instance of the structure |
Get TOML value at a given index
Get TOML value at a given index
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(toml_list_structure), | intent(inout), | target | :: | self |
Instance of the structure |
|
integer, | intent(in) | :: | idx |
Position in the ordered structure |
||
class(toml_value), | intent(out), | pointer | :: | ptr |
Pointer to the stored value at given index |
Get number of TOML values in the structure
Get number of TOML values in the structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(toml_list_structure), | intent(in), | target | :: | self |
Instance of the structure |
Current length of the ordered structure
Remove the last element from the structure
Remove the last element from the data structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(toml_list_structure), | intent(inout), | target | :: | self |
Instance of the structure |
|
class(toml_value), | intent(out), | allocatable | :: | val |
TOML value to be retrieved |
Push back a TOML value to the structure
Push back a TOML value to the structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(toml_list_structure), | intent(inout), | target | :: | self |
Instance of the structure |
|
class(toml_value), | intent(inout), | allocatable | :: | val |
TOML value to be stored |
Remove the first element from the structure
Remove the first element from the data structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(toml_list_structure), | intent(inout), | target | :: | self |
Instance of the structure |
|
class(toml_value), | intent(out), | allocatable | :: | val |
TOML value to be retrieved |
type, abstract :: toml_list_structure contains !> Get number of TOML values in the structure procedure(get_len), deferred :: get_len !> Push back a TOML value to the structure procedure(push_back), deferred :: push_back !> Remove the first element from the structure procedure(shift), deferred :: shift !> Remove the last element from the structure procedure(pop), deferred :: pop !> Get TOML value at a given index procedure(get), deferred :: get !> Destroy the data structure procedure(destroy), deferred :: destroy end type toml_list_structure