(git:6a2e663)
input_enumeration_types Module Reference

represents an enumeration, i.e. a mapping between integers and strings More...

Functions/Subroutines

subroutine, public enum_create (enum, c_vals, i_vals, desc, strict)
 creates an enumeration More...
 
subroutine, public enum_retain (enum)
 retains the given enumeration More...
 
subroutine, public enum_release (enum)
 releases the given enumeration More...
 
character(len=default_string_length) function, public enum_i2c (enum, i)
 maps an integer to a string More...
 
integer function, public enum_c2i (enum, c)
 maps a string to an integer More...
 

Detailed Description

represents an enumeration, i.e. a mapping between integers and strings

History
08.2004 created [fawzi]
Author
fawzi

Function/Subroutine Documentation

◆ enum_create()

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

Parameters
enumthe enumeration to be created
c_valsstring values
i_valsinteger values
desc...
strictif integer values not in the list should be accepted, defaults defaults to true
Author
fawzi

Definition at line 63 of file input_enumeration_types.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ enum_retain()

subroutine, public input_enumeration_types::enum_retain ( type(enumeration_type), pointer  enum)

retains the given enumeration

Parameters
enumthe obect to retain
Author
fawzi

Definition at line 110 of file input_enumeration_types.F.

Here is the caller graph for this function:

◆ enum_release()

subroutine, public input_enumeration_types::enum_release ( type(enumeration_type), pointer  enum)

releases the given enumeration

Parameters
enumthe obect to release
Author
fawzi

Definition at line 123 of file input_enumeration_types.F.

Here is the caller graph for this function:

◆ enum_i2c()

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

Parameters
enumthe enumeration to use for the mapping
ithe value to map
Returns
...
Author
fawzi

Definition at line 151 of file input_enumeration_types.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ enum_c2i()

integer function, public input_enumeration_types::enum_c2i ( type(enumeration_type), pointer  enum,
character(len=*), intent(in)  c 
)

maps a string to an integer

Parameters
enumthe enumeration to use for the mapping
cthe value to map
Returns
...
Author
fawzi

Definition at line 191 of file input_enumeration_types.F.

Here is the call graph for this function:
Here is the caller graph for this function: