Abstract data structure
Delete TOML value at a given key
Delete TOML value at a given key
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(toml_map_structure), | intent(inout), | target | :: | self |
Instance of the structure |
|
character(kind=tfc, len=*), | intent(in) | :: | key |
Key to the TOML value |
Destroy the data structure
Deconstructor for data structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(toml_map_structure), | intent(inout), | target | :: | self |
Instance of the structure |
Get TOML value at a given key
Get TOML value at a given key
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(toml_map_structure), | intent(inout), | target | :: | self |
Instance of the structure |
|
character(kind=tfc, len=*), | intent(in) | :: | key |
Key to the TOML value |
||
class(toml_value), | intent(out), | pointer | :: | ptr |
Pointer to the stored value at given key |
Get list of all keys in the structure
Get list of all keys in the structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(toml_map_structure), | intent(inout), | target | :: | self |
Instance of the structure |
|
type(toml_key), | intent(out), | allocatable | :: | list(:) |
List of all keys |
Remove TOML value at a given key and return it
Remove TOML value at a given key and return it
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(toml_map_structure), | intent(inout), | target | :: | self |
Instance of the structure |
|
character(kind=tfc, len=*), | intent(in) | :: | key |
Key to the TOML value |
||
class(toml_value), | intent(out), | allocatable | :: | val |
Removed TOML value |
Push back a TOML value to the structure
Push back a TOML value to the structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(toml_map_structure), | intent(inout), | target | :: | self |
Instance of the structure |
|
class(toml_value), | intent(inout), | allocatable | :: | val |
TOML value to be stored |
type, abstract :: toml_map_structure contains !> Get TOML value at a given key procedure(get), deferred :: get !> Push back a TOML value to the structure procedure(push_back), deferred :: push_back !> Get list of all keys in the structure procedure(get_keys), deferred :: get_keys !> Remove TOML value at a given key and return it procedure(pop), deferred :: pop !> Delete TOML value at a given key procedure(delete), deferred :: delete !> Destroy the data structure procedure(destroy), deferred :: destroy end type toml_map_structure