![]() |
(git:d18deda)
|
represents an enumeration, i.e. a mapping between integers and strings More...
Data Types | |
type | enumeration_type |
Functions/Subroutines | |
subroutine, public | enum_create (enum, c_vals, i_vals, desc, strict) |
creates an enumeration | |
subroutine, public | enum_retain (enum) |
retains the given enumeration | |
subroutine, public | enum_release (enum) |
releases the given enumeration | |
character(len=default_string_length) function, public | enum_i2c (enum, i) |
maps an integer to a string | |
integer function, public | enum_c2i (enum, c) |
maps a string to an integer | |
represents an enumeration, i.e. a mapping between integers and strings
subroutine, public input_enumeration_types::enum_create | ( | type(enumeration_type), pointer | enum, |
character(len=*), dimension(:), intent(in) | c_vals, | ||
integer, dimension(:), intent(in) | i_vals, | ||
character(len=*), dimension(:), intent(in), optional | desc, | ||
logical, intent(in), optional | strict | ||
) |
creates an enumeration
enum | the enumeration to be created |
c_vals | string values |
i_vals | integer values |
desc | ... |
strict | if integer values not in the list should be accepted, defaults defaults to true |
Definition at line 63 of file input_enumeration_types.F.
subroutine, public input_enumeration_types::enum_retain | ( | type(enumeration_type), pointer | enum | ) |
retains the given enumeration
enum | the obect to retain |
Definition at line 110 of file input_enumeration_types.F.
subroutine, public input_enumeration_types::enum_release | ( | type(enumeration_type), pointer | enum | ) |
releases the given enumeration
enum | the obect to release |
Definition at line 123 of file input_enumeration_types.F.
character(len=default_string_length) function, public input_enumeration_types::enum_i2c | ( | type(enumeration_type), pointer | enum, |
integer, intent(in) | i | ||
) |
maps an integer to a string
enum | the enumeration to use for the mapping |
i | the value to map |
Definition at line 151 of file input_enumeration_types.F.
integer function, public input_enumeration_types::enum_c2i | ( | type(enumeration_type), pointer | enum, |
character(len=*), intent(in) | c | ||
) |
maps a string to an integer
enum | the enumeration to use for the mapping |
c | the value to map |
Definition at line 191 of file input_enumeration_types.F.