Implementation of the TOML table data type.
Every TOML document contains at least one (root) table which holds key-value pairs, arrays and other tables.
Check whether data structure is initialized properly
Check whether data structure is initialized properly
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(toml_table), | intent(in) | :: | self |
Instance of the TOML table |
Data structure is initialized
Overloaded constructor for TOML values
Constructor to create a new TOML table and allocate the internal storage
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(toml_table), | intent(out) | :: | self |
Instance of the TOML table |
Create standard constructor
Default constructor for TOML table type
Instance of the TOML table
TOML table
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
logical, | public | :: | implicit | = | .false. |
Table was implictly created |
|
logical, | public | :: | inline | = | .false. |
Is an inline table and is therefore non-extendable |
|
character(kind=tfc, len=:), | public, | allocatable | :: | key |
Raw representation of the key to the TOML value |
||
integer, | public | :: | origin | = | 0 |
Original source of the value |
Create standard constructor
private function new_table_func () | Default constructor for TOML table type |
procedure, public :: accept | ../../ Accept a visitor to transverse the data structure |
procedure, public :: delete | ../../ Delete TOML value at a given key |
procedure, public :: destroy | ../../ Release allocation hold by TOML table |
procedure, public :: get | ../../ Get the TOML value associated with the respective key |
procedure, public :: get_key | ../../ Get escaped key to TOML value |
procedure, public :: get_keys | ../../ Get list of all keys in this table |
procedure, public :: has_key | ../../ Check if key is already present in this table instance |
procedure, public :: match_key | ../../ Compare raw key of TOML value to input key |
procedure, public :: pop | ../../ Remove TOML value at a given key and return it |
procedure, public :: push_back | ../../ Append value to table (checks automatically for key) |
Constructor to create a new TOML table and allocate the internal storage
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(toml_table), | intent(out) | :: | self |
Instance of the TOML table |